diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2014-12-23 11:02:20 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2014-12-23 11:02:20 +0100 |
commit | 6fde3caa9fdeab3391990c8b23f60d07a91df975 (patch) | |
tree | 226fe1e830518f22a24df87c2fc038bb7a6435a2 | |
parent | Bug 1111043: Bug.add_comment returns the wrong comment ID (diff) | |
download | bugzilla-6fde3caa9fdeab3391990c8b23f60d07a91df975.tar.gz bugzilla-6fde3caa9fdeab3391990c8b23f60d07a91df975.tar.bz2 bugzilla-6fde3caa9fdeab3391990c8b23f60d07a91df975.zip |
Bug 1106653: Truncate the field-* and type-* values in error messages
r=dkl a=glob
-rw-r--r-- | template/en/default/global/code-error.html.tmpl | 6 |
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 086f34ab6..e4416326b 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" %] [% terms.Bugzilla %] does not support the search type - "[% operator FILTER html %]". + "[% operator.truncate(30, "...") FILTER html %]". [% ELSE %] [%# Try to find hooked error messages %] |