]> 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 09:57:09 +0000 (10:57 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 23 Dec 2014 09:57:09 +0000 (10:57 +0100)
r=dkl a=glob

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

index a4a4962dd86d2d015174974c5d6a8f6ac70d1d71..a242c74712ce472dac507f917aec74c473481f1a 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" %]
     Bugzilla does not support the search type
-    "[% operator FILTER html %]".
+    "[% operator.truncate(30, "...") FILTER html %]".
 
   [% ELSE %]
     [%# Try to find hooked error messages %]