aboutsummaryrefslogtreecommitdiffstats
path: root/template/en
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-12-23 11:00:23 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-12-23 11:00:23 +0100
commit20711674bd23053b5aa558a008262a0e0a0c997a (patch)
tree257820a8ef77a0c55e5b5de63cc6bc48e23ae3e2 /template/en
parent21cfe121bb2300e7b9b11025cb5e11bac5a7393d (diff)
downloadbugs-20711674bd23053b5aa558a008262a0e0a0c997a.tar
bugs-20711674bd23053b5aa558a008262a0e0a0c997a.tar.gz
bugs-20711674bd23053b5aa558a008262a0e0a0c997a.tar.bz2
bugs-20711674bd23053b5aa558a008262a0e0a0c997a.tar.xz
bugs-20711674bd23053b5aa558a008262a0e0a0c997a.zip
Bug 1106653: Truncate the field-* and type-* values in error messages
r=dkl a=glob
Diffstat (limited to 'template/en')
-rw-r--r--template/en/default/global/code-error.html.tmpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl
index 1c3422fa8..d73d75e13 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -219,7 +219,8 @@
but rather <em>[% target_type FILTER html %]</em>.
[% ELSIF error == "invalid_field_name" %]
- Can't use [% field FILTER html %] as a field name.
+ [% title = "Invalid Field Name" %]
+ Can't use "[% field.truncate(30, "...") FILTER html %]" as a field name.
[% ELSIF error == "jobqueue_insert_failed" %]
[% title = "Job Queue Failure" %]
@@ -384,8 +385,9 @@
Invalid setting for post_bug_submit_action
[% ELSIF error == "search_field_operator_unsupported" %]
+ [% title = "Invalid Search Type" %]
Bugzilla does not support the search type
- "[% operator FILTER html %]".
+ "[% operator.truncate(30, "...") FILTER html %]".
[% ELSE %]
[%# Try to find hooked error messages %]