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

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

index 1c3422fa8a5920951ff8328b08c584ecb62238b2..d73d75e135d6e174449affc1f3164b87626aacb5 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 %]