[icinga-checkins] icinga.org: icingaweb2-module-director/master: Data: allow to search for fields and data lists

git at icinga.org git at icinga.org
Fri Nov 18 15:42:11 CET 2016


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

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Nov 18 15:41:33 2016 +0100

Data: allow to search for fields and data lists

fixes #13247

---

 application/controllers/DataController.php |    2 ++
 application/tables/DatafieldTable.php      |    1 +
 2 files changed, 3 insertions(+)

diff --git a/application/controllers/DataController.php b/application/controllers/DataController.php
index ad2f0bc..237b900 100644
--- a/application/controllers/DataController.php
+++ b/application/controllers/DataController.php
@@ -19,6 +19,7 @@ class DataController extends ActionController
         $this->setDataTabs()->activate('datalist');
         $this->view->title = $this->translate('Data lists');
         $this->prepareAndRenderTable('datalist');
+        $this->provideFilterEditorForTable($this->view->table);
     }
 
     public function listAction()
@@ -125,6 +126,7 @@ class DataController extends ActionController
         $this->setDataTabs()->activate('datafield');
         $this->view->title = $this->translate('Data fields');
         $this->prepareAndRenderTable('datafield');
+        $this->provideFilterEditorForTable($this->view->table);
     }
 
     public function listentryAction()
diff --git a/application/tables/DatafieldTable.php b/application/tables/DatafieldTable.php
index 4964b29..36124f0 100644
--- a/application/tables/DatafieldTable.php
+++ b/application/tables/DatafieldTable.php
@@ -10,6 +10,7 @@ class DatafieldTable extends QuickTable
 {
     protected $searchColumns = array(
         'varname',
+        'caption',
     );
 
     public function getColumns()



More information about the icinga-checkins mailing list