Commit 20711674 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1106653: Truncate the field-* and type-* values in error messages

r=dkl a=glob
parent 21cfe121
......@@ -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" %]
Bugzilla does not support the search type
"[% operator FILTER html %]".
"[% operator.truncate(30, "...") FILTER html %]".
[% ELSE %]
[%# Try to find hooked error messages %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment