mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-06-09 00:32:05 -04:00
Auth: Explicitly select flatname from customvar_flat
The `*` was just a lazy fix. Should be bullet proof now. (fingers crossed)
This commit is contained in:
parent
068377e4c6
commit
105842658e
1 changed files with 6 additions and 1 deletions
|
|
@ -203,7 +203,12 @@ trait Auth
|
|||
|
||||
$columns = $query->getColumns();
|
||||
if (empty($columns)) {
|
||||
$columns = [$flatvaluePath, '*'];
|
||||
$columns = [
|
||||
$customVarRelationName
|
||||
? $resolver->qualifyColumn('flatname', $customVarRelationName)
|
||||
: 'flatname',
|
||||
$flatvaluePath
|
||||
];
|
||||
}
|
||||
|
||||
$flatvalue = null;
|
||||
|
|
|
|||
Loading…
Reference in a new issue