Fixed hardcoded default columns

This commit is contained in:
Thomas Gelf 2013-08-20 22:45:33 +02:00 committed by Eric Lippmann
parent 1c2142be27
commit 830b178e37
1 changed files with 2 additions and 1 deletions

View File

@ -114,7 +114,8 @@ abstract class AbstractQuery extends Query
protected function getDefaultColumns()
{
return $this->columnMap['hostgroups'];
$table = array_shift(array_keys($this->columnMap));
return array_keys($this->columnMap[$table]);
}
protected function beforeCreatingCountQuery()