From fec2e7533f0e05e218873faa6054b8a7912f1cab Mon Sep 17 00:00:00 2001 From: anonymous <anonymous> Date: Wed, 9 Jan 2019 13:27:39 +0100 Subject: [PATCH] fix error string problem --- ckanext/odsh/templates/macros/form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/odsh/templates/macros/form.html b/ckanext/odsh/templates/macros/form.html index 7ad0a9f0..8fc3221b 100644 --- a/ckanext/odsh/templates/macros/form.html +++ b/ckanext/odsh/templates/macros/form.html @@ -33,7 +33,7 @@ is_required=false) %} <div class="span6 inline-error"> {% if error is iterable and error is not string %} {{error|first}} - {% else %} + {% elif error is string %} {{error}} {% endif %} </div> -- GitLab