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];
|
||||
}
|
||||
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
return $this->idxCustomAliases[$alias];
|
||||
if (isset($this->idxCustomAliases[$alias])) {
|
||||
return $this->idxCustomAliases[$alias];
|
||||
}
|
||||
return $alias;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue