]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 576916: 'keywordaction' is undefined when editing a single bug
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 6 Jul 2010 00:49:09 +0000 (02:49 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 6 Jul 2010 00:49:09 +0000 (02:49 +0200)
r/a=mkanat

process_bug.cgi
template/en/default/list/edit-multiple.html.tmpl

index f6da2af611d2af30105803176d5a4ff3ef51f8c5..7126d5d8b7c4c88fa02bccc69e3d92537b40f80d 100755 (executable)
@@ -258,7 +258,8 @@ foreach my $field_name (@set_fields) {
 }
 
 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 = 'set'    if $action eq 'makeexact';
     $set_all_fields{keywords}->{$action} = $cgi->param('keywords');
index 03e1395a1b8f7742eb58fae7009662336206137e..736f2c71a2647cb5068f25edf58c20d9d6001fe8 100644 (file)
         %]
         <select name="keywordaction">
           <option value="add">Add these keywords</option>
-          <option value="delete">Delete these keywords</option>
-          <option value="makeexact">Make the keywords be exactly this list</option>
+          <option value="remove">Delete these keywords</option>
+          <option value="set">Make the keywords be exactly this list</option>
         </select>
       </td>