From cafdf699a2a3a8ef41f7ec8d93a807efdaf91ed9 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 13 Oct 2016 16:48:14 +0100 Subject: Fix extra "required" by testing correct value. --- templates/web/base/admin/category_edit.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/web/base/admin/category_edit.html b/templates/web/base/admin/category_edit.html index d1a323819..5eb3c943e 100644 --- a/templates/web/base/admin/category_edit.html +++ b/templates/web/base/admin/category_edit.html @@ -32,7 +32,7 @@ [% FOR meta IN contact.get_metadata_for_input %]
  • [% meta.order %], [% meta.code %], [% meta.datatype %], - [% meta.required ? loc('required') : loc('optional') %] + [% meta.required == 'true' ? loc('required') : loc('optional') %]
    [% meta.description %] [% IF meta.variable != 'false' AND meta.exists('values') %]