[icinga-checkins] icinga.org: icingaweb2-module-director/master: ImportsourceController: do not show status unless...

git at icinga.org git at icinga.org
Tue Aug 23 16:31:37 CEST 2016


Module: icingaweb2-module-director
Branch: master
Commit: b5d6139893d4ccdd0137744ff78034a968c06e61
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=b5d6139893d4ccdd0137744ff78034a968c06e61

Author: Thomas Gelf <thomas at gelf.net>
Date:   Tue Aug 23 14:26:06 2016 +0000

ImportsourceController: do not show status unless...

...we show them

---

 application/controllers/ImportsourceController.php |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/application/controllers/ImportsourceController.php b/application/controllers/ImportsourceController.php
index b8a6049..5892c4d 100644
--- a/application/controllers/ImportsourceController.php
+++ b/application/controllers/ImportsourceController.php
@@ -107,7 +107,9 @@ class ImportsourceController extends ActionController
 
         $this->prepareTabs($id)->activate('history');
         $this->view->title = $this->translate('Import run history');
-        $this->view->stats = $this->db()->fetchImportStatistics();
+
+        // TODO: temporarily disabled, find a better place for stats:
+        // $this->view->stats = $this->db()->fetchImportStatistics();
         $this->prepareTable('importrun');
         $this->view->table->enforceFilter(Filter::where('source_id', $id));
     }



More information about the icinga-checkins mailing list