Commit e5cb4411 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Fix some test failures caused by the Field::Choice patches.

parent 4b781a33
...@@ -34,8 +34,10 @@ ...@@ -34,8 +34,10 @@
<table border="0" cellpadding="4" cellspacing="0"> <table border="0" cellpadding="4" cellspacing="0">
<tr> <tr>
<th align="right"><label for="value">Value:</label></th> <th align="right"><label for="value">Value:</label></th>
<td><input id="value" name="value" size="30" <td>
maxlength="[% constants.MAX_FIELD_VALUE_SIZE %]"></td> <input id="value" name="value" size="30"
maxlength="[% constants.MAX_FIELD_VALUE_SIZE FILTER none %]">
</td>
</tr> </tr>
<tr> <tr>
<th align="right"><label for="sortkey">Sortkey:</label></th> <th align="right"><label for="sortkey">Sortkey:</label></th>
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
[%- value.name FILTER html %] [%- value.name FILTER html %]
[% ELSE %] [% ELSE %]
<input id="value_new" name="value_new" size="20" <input id="value_new" name="value_new" size="20"
maxlength="[% constants.MAX_FIELD_VALUE_SIZE %]" maxlength="[% constants.MAX_FIELD_VALUE_SIZE FILTER none %]"
value="[% value.name FILTER html %]"> value="[% value.name FILTER html %]">
[% END %] [% END %]
</td> </td>
......
...@@ -441,9 +441,9 @@ ...@@ -441,9 +441,9 @@
[% ELSIF error == "fieldvalue_name_too_long" %] [% ELSIF error == "fieldvalue_name_too_long" %]
[% title = "Field Value Is Too Long" %] [% title = "Field Value Is Too Long" %]
The value of a field is limited to [% constants.FIELD_VALUE_MAX_SIZE %] The value of a field is limited to
characters. '[% value FILTER html %]' is too long ([% value.length %] [%+ constants.FIELD_VALUE_MAX_SIZE FILTER none %] characters.
characters). '[% value FILTER html %]' is too long ([% value.length %] characters).
[% ELSIF error == "fieldvalue_not_editable" %] [% ELSIF error == "fieldvalue_not_editable" %]
[% title = "Field Value Not Editable" %] [% title = "Field Value Not Editable" %]
...@@ -1667,6 +1667,6 @@ ...@@ -1667,6 +1667,6 @@
field field
[% ELSIF ( matches = class.match('^Bugzilla::Field::Choice::(.+)') ) %] [% ELSIF ( matches = class.match('^Bugzilla::Field::Choice::(.+)') ) %]
[% SET field_name = matches.0 %] [% SET field_name = matches.0 %]
[% field_descs.$field_name %] [% field_descs.$field_name FILTER html %]
[% END %] [% END %]
[% END %] [% END %]
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