Commit 88db8c57 authored by webchick's avatar webchick

Issue #2067529 by mrded, rhm50: Remove Unused local variable from...

Issue #2067529 by mrded, rhm50: Remove Unused local variable  from /core/modules/views/lib/Drupal/views/ManyToOneHelper.php.
parent b917d2b0
...@@ -220,11 +220,11 @@ public function ensureMyTable() { ...@@ -220,11 +220,11 @@ public function ensureMyTable() {
} }
$this->handler->view->many_to_one_aliases[$field][$value] = $this->handler->table . '_value_' . ($this->handler->view->many_to_one_count[$this->handler->table]++); $this->handler->view->many_to_one_aliases[$field][$value] = $this->handler->table . '_value_' . ($this->handler->view->many_to_one_count[$this->handler->table]++);
} }
$alias = $this->handler->tableAliases[$value] = $this->addTable($join, $this->handler->view->many_to_one_aliases[$field][$value]);
// and set table_alias to the first of these. $this->handler->tableAliases[$value] = $this->addTable($join, $this->handler->view->many_to_one_aliases[$field][$value]);
// Set tableAlias to the first of these.
if (empty($this->handler->tableAlias)) { if (empty($this->handler->tableAlias)) {
$this->handler->tableAlias = $alias; $this->handler->tableAlias = $this->handler->tableAliases[$value];
} }
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment