diff --git a/modules/monitoring/library/Monitoring/Object/ObjectList.php b/modules/monitoring/library/Monitoring/Object/ObjectList.php index 669e8ff39..0b9575a22 100644 --- a/modules/monitoring/library/Monitoring/Object/ObjectList.php +++ b/modules/monitoring/library/Monitoring/Object/ObjectList.php @@ -124,9 +124,14 @@ abstract class ObjectList implements Countable, IteratorAggregate, Filterable public function count() { if ($this->count === null) { - $this->count = (int) $this->backend->select()->from($this->dataViewName)->applyFilter($this->filter) - ->getQuery()->count(); + $this->count = (int) $this->backend + ->select() + ->from($this->dataViewName, $this->columns) + ->applyFilter($this->filter) + ->getQuery() + ->count(); } + return $this->count; }