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,10 +891,20 @@ 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)
|
||||
{
|
||||
if (isset($this->idxCustomAliases[$alias])) {
|
||||
return $this->idxCustomAliases[$alias];
|
||||
}
|
||||
return $alias;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a sub query
|
||||
|
|
Loading…
Reference in New Issue