mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
DbRepository: Remove the table prefix when resolving statement columns
refs #8826
This commit is contained in:
parent
bd07f78d94
commit
0dda19dc7a
@ -348,7 +348,7 @@ abstract class DbRepository extends Repository implements Extensible, Updatable,
|
||||
return $statementColumnMap[$alias];
|
||||
}
|
||||
|
||||
$prefixedAlias = $table . '.' . $alias;
|
||||
$prefixedAlias = $this->removeTablePrefix($table) . '.' . $alias;
|
||||
if (isset($statementColumnMap[$prefixedAlias])) {
|
||||
return $statementColumnMap[$prefixedAlias];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user