Module: check_mk
Branch: master
Commit: 13d08f14015727e52de052955f487451986cc598
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=13d08f14015727…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Mar 10 11:13:04 2017 +0100
CME: Handle missing customer case for users, groups and ldap connections
Change-Id: I3e5c501e8f9eeb9cd7377033b5764cb2df71d7f6
---
web/htdocs/wato.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 64a0749..69c0099 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -7077,11 +7077,11 @@ class ModeEditGroup(WatoMode):
self._edit_nagvis_map_permissions()
if cmk.is_managed_edition():
- customer = self._vs_customer.from_html_vars("customer")
- self._vs_customer.validate_value(customer, "customer")
+ self.group["customer"] =
self._vs_customer.from_html_vars("customer")
+ self._vs_customer.validate_value(self.group["customer"],
"customer")
- if customer != "provider":
- self.group["customer"] = customer
+ if customer == "provider":
+ del self.group["customer"]
if self._new:
self.name = html.var("name").strip()