# HG changeset patch # User RĂ©mi Cardona # Date 1426592145 -3600 # Node ID e7cdf820fe8fddfb07eb1791087f128bf0e05b03 # Parent 3231fd2fa7a5d7f8e0065195e27e57fdf231da0e [web/views] Fix exception in CWProperty edit form (closes #5087412) Also add missing help message. The overall display is ugly, but at least the message is shown. diff -r 3231fd2fa7a5 -r e7cdf820fe8f web/views/cwproperties.py --- a/web/views/cwproperties.py Wed Mar 18 14:41:47 2015 +0100 +++ b/web/views/cwproperties.py Tue Mar 17 12:35:45 2015 +0100 @@ -302,7 +302,7 @@ domid = field.dom_id(form) value = '%s' % (domid, self.value) if self.msg: - value + '
%s
' % self.msg + value += '
%s
' % self.msg return value @@ -355,6 +355,7 @@ msg = form._cw._('you should probably delete that property') self.widget = NotEditableWidget(entity.printable_value('value'), '%s (%s)' % (msg, ex)) + return if entity.pkey.startswith('system.'): msg = form._cw._('value associated to this key is not editable ' 'manually')