]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1106653: Truncate the field-* and type-* values in error messages
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 23 Dec 2014 10:02:20 +0000 (11:02 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 23 Dec 2014 10:02:20 +0000 (11:02 +0100)
r=dkl a=glob

template/en/default/global/code-error.html.tmpl

index 086f34ab62382edf4042b97666795630c4936386..e4416326b356132e284b54310552052c307d8734 100644 (file)
     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" %]
     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 %]