Title: [opsview] [13265] Merge of 12685 from DEV-professional
Revision
13265
Author
tvoon
Date
2013-08-15 18:37:37 +0100 (Thu, 15 Aug 2013)

Log Message

Merge of 12685 from DEV-professional

Modified Paths


Modified: trunk/opsview-web/root/admin/role/tab-configuration
===================================================================
--- trunk/opsview-web/root/admin/role/tab-configuration	2013-08-15 17:33:15 UTC (rev 13264)
+++ trunk/opsview-web/root/admin/role/tab-configuration	2013-08-15 17:37:37 UTC (rev 13265)
@@ -125,19 +125,20 @@
     text = c.loc("ui.admin.role.edit.help.hideRelatedObjects") | html;
     content = content _ '<div class="input">' _ text _ '</div>';
     something_else_shown = 1;
-  END;
+  ELSE;
 
-  rs = object.scalar.allowed_hostgroups_hierarchy();
-  IF rs.count > 0;
-    content = content _ scrolling_list(
-      form_label         => c.loc('ui.admin.role.edit.configuration.label.hostgroups'),
-      name               => 'hostgroups',
-      resultset_iterator => rs.scalar.search_by_tree,
-      help_keyword       => 'host_groups',
-      multiple           => 1,
-      size               => 10,
-    );
-    something_else_shown = 1;
+    rs = object.scalar.allowed_hostgroups_hierarchy();
+    IF rs.count > 0;
+      content = content _ scrolling_list(
+        form_label         => c.loc('ui.admin.role.edit.configuration.label.hostgroups'),
+        name               => 'hostgroups',
+        resultset_iterator => rs.scalar.search_by_tree,
+        help_keyword       => 'host_groups',
+        multiple           => 1,
+        size               => 10,
+      );
+      something_else_shown = 1;
+    END;
   END;
 
 END;

_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins

Reply via email to