src/pyams_gis/zmi/widget/templates/geoarea-input.pt
changeset 62 2c4dc7ef5ccb
parent 59 e76424bd0bf4
child 68 b0a03a00c83e
--- 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>