From: Frédéric Buclin Date: Tue, 23 Dec 2014 10:02:20 +0000 (+0100) Subject: Bug 1106653: Truncate the field-* and type-* values in error messages X-Git-Tag: bugzilla-4.4.7~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fde3caa9fdeab3391990c8b23f60d07a91df975;p=thirdparty%2Fbugzilla.git Bug 1106653: Truncate the field-* and type-* values in error messages r=dkl a=glob --- diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index 086f34ab62..e4416326b3 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 [% target_type FILTER html %]. [% 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 %]