Module: check_mk
Branch: master
Commit: 02903a59d660ecb00ee3e5669f4b94ab1fde87ed
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=02903a59d660ec…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Jan 21 15:31:01 2016 +0100
Graph collections: fix bogus complain about duplicate ID when cloning collections
---
web/htdocs/pagetypes.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/pagetypes.py b/web/htdocs/pagetypes.py
index a05d451..d057041 100644
--- a/web/htdocs/pagetypes.py
+++ b/web/htdocs/pagetypes.py
@@ -871,12 +871,13 @@ class Overridable:
def validate(page_dict):
owner_user_id = html.var("owner", config.user_id)
+ page_name = page_dict["name"]
if owner_user_id == config.user_id:
page = self.find_my_page(page_name)
else:
page = self.find_foreign_page(owner_user_id, page_name)
if page:
- raise MKUserError("_p_name", _("You already have an with
the ID <b>%s</b>") % page_dict["name"])
+ raise MKUserError("_p_name", _("You already have an
element with the ID <b>%s</b>") % page_dict["name"])
new_page_dict = forms.edit_valuespec(vs, page_dict, validate=validate)
if new_page_dict != None: