[icinga-checkins] icinga.org: icinga-web/master: * Fixed typo that prevented servicegroup restrictions from being applied ( fixes #2276)

git at icinga.org git at icinga.org
Fri Feb 3 16:43:10 CET 2012


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

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Fri Feb  3 16:31:19 2012 +0100

* Fixed typo that prevented servicegroup restrictions from being applied (fixes #2276)

---

 app/modules/AppKit/lib/js/admin/RoleEditForm.js |    2 +-
 app/modules/AppKit/lib/js/admin/UserEditForm.js |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/modules/AppKit/lib/js/admin/RoleEditForm.js b/app/modules/AppKit/lib/js/admin/RoleEditForm.js
index 0114ad4..3fcfa3e 100644
--- a/app/modules/AppKit/lib/js/admin/RoleEditForm.js
+++ b/app/modules/AppKit/lib/js/admin/RoleEditForm.js
@@ -175,7 +175,7 @@ AppKit.Admin.RoleEditForm = function(cfg) {
         });
         roleServicegroupPrincipalStore.each(function(p) {
             params["principal_target["+i+"][name][]"] = "IcingaServicegroup";
-            params["principal_value["+i+"][serviegroup][]"] = p.get("servicegroup"); 
+            params["principal_value["+i+"][servicegroup][]"] = p.get("servicegroup");
             params["principal_target["+i+"][set][]"] = 1;
             i++;
         });
diff --git a/app/modules/AppKit/lib/js/admin/UserEditForm.js b/app/modules/AppKit/lib/js/admin/UserEditForm.js
index d9c6574..d5db4f1 100644
--- a/app/modules/AppKit/lib/js/admin/UserEditForm.js
+++ b/app/modules/AppKit/lib/js/admin/UserEditForm.js
@@ -178,7 +178,7 @@ AppKit.Admin.UserEditForm = function(cfg) {
         });
         userServicegroupPrincipalStore.each(function(p) {
             params["principal_target["+i+"][name][]"] = "IcingaServicegroup";
-            params["principal_value["+i+"][serviegroup][]"] = p.get("servicegroup"); 
+            params["principal_value["+i+"][servicegroup][]"] = p.get("servicegroup");
             params["principal_target["+i+"][set][]"] = 1;
             i++;
         });





More information about the icinga-checkins mailing list