Repository: Do not return filter columns when requiring all query columns
I really wonder why I did not notice this until now... refs #8826
This commit is contained in:
parent
a88037f45d
commit
3959dc27d7
|
@ -653,7 +653,15 @@ abstract class Repository implements Selectable
|
||||||
throw new ProgrammingError('Table name "%s" not found', $table);
|
throw new ProgrammingError('Table name "%s" not found', $table);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $queryColumns[$table];
|
$filterColumns = $this->getFilterColumns();
|
||||||
|
$columns = array();
|
||||||
|
foreach ($queryColumns[$table] as $alias => $column) {
|
||||||
|
if (! in_array(is_string($alias) ? $alias : $column, $filterColumns)) {
|
||||||
|
$columns[$alias] = $column;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue