--- a/src/pyams_gis/zmi/widget/templates/geoarea-input.pt Tue Sep 18 16:22:29 2018 +0200
+++ b/src/pyams_gis/zmi/widget/templates/geoarea-input.pt Wed Oct 17 16:09:48 2018 +0200
@@ -63,7 +63,7 @@
<span>
<tal:var content="python:request.localizer.translate(widget.label)" />
<i class="fa fa-question-circle hint" title="Input hint"
- tal:define="description python:getattr(widget, 'description', widget.field.description)"
+ tal:define="description python:getattr(widget, 'description', None) or widget.field.description"
tal:condition="description"
tal:attributes="title description;
data-ams-hint-html python:'<' in description;"></i>
--- a/src/pyams_gis/zmi/widget/templates/geopoint-input.pt Tue Sep 18 16:22:29 2018 +0200
+++ b/src/pyams_gis/zmi/widget/templates/geopoint-input.pt Wed Oct 17 16:09:48 2018 +0200
@@ -65,7 +65,7 @@
<span>
<tal:var content="python:request.localizer.translate(widget.label)" />
<i class="fa fa-question-circle hint" title="Input hint"
- tal:define="description python:getattr(widget, 'description', widget.field.description)"
+ tal:define="description python:getattr(widget, 'description', None) or widget.field.description"
tal:condition="description"
tal:attributes="title description;
data-ams-hint-html python:'<' in description;"></i>