Module: check_mk
Branch: master
Commit: d480298428743f9e468e49e1790ccbef99734d29
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d480298428743f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 11 09:43:54 2012 +0100
FIX: Persisting changing of folder titles when only the title has changed
---
ChangeLog | 1 +
web/htdocs/wato.py | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5abaf5f..7f16bd6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -47,6 +47,7 @@
WATO:
* FIX: Fixed generated manual check definitions for checks without items
like ntp_time and tcp_conn_stats
+ * FIX: Persisting changing of folder titles when only the title has changed
Event Console:
* FIX: fix exception in rules that use facility local7
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 720f7aa..4215894 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1693,6 +1693,7 @@ def mode_editfolder(phase, new):
title = html.var_utf8("title")
if not title:
raise MKUserError("title", _("Please supply a title."))
+ title_changed = not new and title != g_folder.get('title', '')
# OS filename
if new:
@@ -1750,7 +1751,7 @@ def mode_editfolder(phase, new):
g_folder["title"] = title
- if attributes_changed:
+ if attributes_changed or title_changed:
mark_affected_sites_dirty(g_folder)
g_folder["attributes"] = attributes