mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-21 12:54:26 +02:00
monitoring: Don't fail when selecting custom variables while having a group by clause
refs #9692
This commit is contained in:
parent
15cb24c6dc
commit
a75b1a35c6
@ -891,9 +891,19 @@ abstract class IdoQuery extends DbQuery
|
|||||||
return $this->idxAliasColumn[$alias];
|
return $this->idxAliasColumn[$alias];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the alias of a column expression as defined in the {@link $columnMap} property.
|
||||||
|
*
|
||||||
|
* @param string $alias Potential custom alias
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
public function customAliasToAlias($alias)
|
public function customAliasToAlias($alias)
|
||||||
{
|
{
|
||||||
return $this->idxCustomAliases[$alias];
|
if (isset($this->idxCustomAliases[$alias])) {
|
||||||
|
return $this->idxCustomAliases[$alias];
|
||||||
|
}
|
||||||
|
return $alias;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user