[icinga-checkins] icinga.org: icinga-web/master: * Due to a bug in doctrine, CronkGridTemplateWorker retrieves data now as array

git at icinga.org git at icinga.org
Fri Aug 12 12:28:36 CEST 2011


Module: icinga-web
Branch: master
Commit: 31425cd7f79749c54870771f8d19e162e0b2f3d4
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=31425cd7f79749c54870771f8d19e162e0b2f3d4

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Fri Aug 12 11:19:01 2011 +0200

* Due to a bug in doctrine, CronkGridTemplateWorker retrieves data now as array

---

 .../lib/template/CronkGridTemplateWorker.class.php |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/lib/template/CronkGridTemplateWorker.class.php b/app/modules/Cronks/lib/template/CronkGridTemplateWorker.class.php
index 8aeec7f..237bae3 100644
--- a/app/modules/Cronks/lib/template/CronkGridTemplateWorker.class.php
+++ b/app/modules/Cronks/lib/template/CronkGridTemplateWorker.class.php
@@ -143,8 +143,9 @@ class CronkGridTemplateWorker {
     private function getDataAsArray() {
         if ($this->api_search !== null) {
             $data = array();
+            $this->api_search->setResultType(IcingaApiConstants::RESULT_ARRAY);
             $dataSet = $this->api_search->fetch();
-
+           
             foreach($dataSet as $result) {
                 if ($this->result_count === null) {
                     $this->result_count = $result->getResultCount();





More information about the icinga-checkins mailing list