[icinga-checkins] icinga.org: icingaweb2-module-director/bugfix/loop-templateresolver-11803: UserGroup: do not provide assign_filter property

git at icinga.org git at icinga.org
Mon Oct 31 13:31:47 CET 2016


Module: icingaweb2-module-director
Branch: bugfix/loop-templateresolver-11803
Commit: d2f359e3e35d1ee69dde2cc6ed98cd046a9a071f
URL:    https://git.icinga.org/?p=icingaweb2-module-director.git;a=commit;h=d2f359e3e35d1ee69dde2cc6ed98cd046a9a071f

Author: Thomas Gelf <thomas at gelf.net>
Date:   Fri Oct 28 23:29:33 2016 +0000

UserGroup: do not provide assign_filter property

fixes #13007

---

 library/Director/Objects/IcingaUserGroup.php |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/library/Director/Objects/IcingaUserGroup.php b/library/Director/Objects/IcingaUserGroup.php
index b85c312..0e30ecd 100644
--- a/library/Director/Objects/IcingaUserGroup.php
+++ b/library/Director/Objects/IcingaUserGroup.php
@@ -8,6 +8,14 @@ class IcingaUserGroup extends IcingaObjectGroup
 {
     protected $table = 'icinga_usergroup';
 
+    protected $defaultProperties = array(
+        'id'            => null,
+        'object_name'   => null,
+        'object_type'   => null,
+        'disabled'      => 'n',
+        'display_name'  => null,
+    );
+
     public function getRenderingZone(IcingaConfig $config = null)
     {
         return $this->connection->getMasterZoneName();



More information about the icinga-checkins mailing list