Module: check_mk
Branch: master
Commit: a92b3ee3104d3505dd2d589f7d0535c7e459667d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a92b3ee3104d35…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 16 16:17:12 2013 +0200
FIX: fix column editor for join columns if SERVICE: is l10n'ed
---
ChangeLog | 1 +
web/htdocs/views.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 5154821..17349ae 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -141,6 +141,7 @@
Multisite:
* List of views: Output the alias of a datasource instead of internal name
+ * FIX: fix column editor for join columns if "SERVICE:" is l10n'ed
WATO:
* FIX: convert editing of global setting to POST. This avoid URL-too-long
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index ef07701..bcbac05 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2009,7 +2009,7 @@ def allowed_for_joined_datasource(collection, datasourcename):
def is_joined_value(collection, varname):
selected_label = [ label for name, label in collection if name == html.var(varname,
'') ]
- return selected_label and selected_label[0][:8] == _('SERVICE:')
+ return selected_label and selected_label[0].startswith(_('SERVICE:'))
def collist_of_collection(collection, join_target = []):
def sort_list(l):