Fixed hardcoded default columns
This commit is contained in:
parent
1c2142be27
commit
830b178e37
|
@ -114,7 +114,8 @@ abstract class AbstractQuery extends Query
|
||||||
|
|
||||||
protected function getDefaultColumns()
|
protected function getDefaultColumns()
|
||||||
{
|
{
|
||||||
return $this->columnMap['hostgroups'];
|
$table = array_shift(array_keys($this->columnMap));
|
||||||
|
return array_keys($this->columnMap[$table]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function beforeCreatingCountQuery()
|
protected function beforeCreatingCountQuery()
|
||||||
|
|
Loading…
Reference in New Issue