aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-10-09 15:22:21 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-10-10 08:25:05 +0100
commitaa9da58052284ec334d43997c76c7be1c5adeb5e (patch)
tree3fb02682c07b64769df0b31e064f0f7480e6d96c
parent12f5a59de622f268d6024a09d07d044f9eb5b5aa (diff)
If meta field lacks description, fall back to code.
-rw-r--r--templates/web/base/report/new/category_extras_fields.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/web/base/report/new/category_extras_fields.html b/templates/web/base/report/new/category_extras_fields.html
index e9237f83b..9ab9722cf 100644
--- a/templates/web/base/report/new/category_extras_fields.html
+++ b/templates/web/base/report/new/category_extras_fields.html
@@ -8,7 +8,7 @@
[% ELSIF meta.variable != 'false' || NOT hide_notices %]
- <label for="[% cat_prefix %]form_[% meta_name %]">[% meta.description %]</label>
+ <label for="[% cat_prefix %]form_[% meta_name %]">[% meta.description OR meta.code %]</label>
[% TRY %][% INCLUDE 'report/new/_category_extra_field_notice.html' %][% CATCH file %][% END %]
[% IF field_errors.$x_meta_name %]
<p class='form-error'>[% field_errors.$x_meta_name %]</p>