Commit 122c0407 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 576916: 'keywordaction' is undefined when editing a single bug

r/a=mkanat
parent 108eb83f
...@@ -258,7 +258,8 @@ foreach my $field_name (@set_fields) { ...@@ -258,7 +258,8 @@ foreach my $field_name (@set_fields) {
} }
if (should_set('keywords')) { if (should_set('keywords')) {
my $action = $cgi->param('keywordaction'); my $action = $cgi->param('keywordaction') || '';
# Backward-compatibility for Bugzilla 3.x and older.
$action = 'remove' if $action eq 'delete'; $action = 'remove' if $action eq 'delete';
$action = 'set' if $action eq 'makeexact'; $action = 'set' if $action eq 'makeexact';
$set_all_fields{keywords}->{$action} = $cgi->param('keywords'); $set_all_fields{keywords}->{$action} = $cgi->param('keywords');
......
...@@ -230,8 +230,8 @@ ...@@ -230,8 +230,8 @@
%] %]
<select name="keywordaction"> <select name="keywordaction">
<option value="add">Add these keywords</option> <option value="add">Add these keywords</option>
<option value="delete">Delete these keywords</option> <option value="remove">Delete these keywords</option>
<option value="makeexact">Make the keywords be exactly this list</option> <option value="set">Make the keywords be exactly this list</option>
</select> </select>
</td> </td>
......
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