summaryrefslogtreecommitdiffstats
path: root/template/en/default/global
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-12-23 10:57:09 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2014-12-23 10:57:09 +0100
commit505682fb6c48787277b38a5ea5513590ae939aca (patch)
treecdf437c74b1789081633282b9e4f3abb8d7c3aec /template/en/default/global
parent1447622fb19fb6755be78efc1c3fc79826ced5c8 (diff)
downloadbugzilla-505682fb6c48787277b38a5ea5513590ae939aca.tar.gz
bugzilla-505682fb6c48787277b38a5ea5513590ae939aca.tar.xz
Bug 1106653: Truncate the field-* and type-* values in error messages
r=dkl a=glob
Diffstat (limited to 'template/en/default/global')
-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 a4a4962dd..a242c7471 100644
--- a/template/en/default/global/code-error.html.tmpl
+++ b/template/en/default/global/code-error.html.tmpl
@@ -223,7 +223,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" %]
@@ -388,8 +389,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 %]