monitoring: Don't fail when selecting custom variables while having a group by clause

refs #9692
This commit is contained in:
Eric Lippmann 2015-07-22 13:47:52 +02:00
parent 15cb24c6dc
commit a75b1a35c6
1 changed files with 11 additions and 1 deletions

View File

@ -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;
}
/**