]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 177624 Wildcard rejects --do_not_change-- in mass-change
authorbugreport%peshkin.net <>
Fri, 1 Nov 2002 06:20:26 +0000 (06:20 +0000)
committerbugreport%peshkin.net <>
Fri, 1 Nov 2002 06:20:26 +0000 (06:20 +0000)
Patch by not_erik
r=joel

Bugzilla/User.pm

index 087dc11138c65cfbb1cfd8a6f7a21f3e9bcdd6e0..3e5cce99062ec69fcfbe3e339681bda7f0b4b07f 100644 (file)
@@ -214,6 +214,9 @@ sub match_field {
     $vars->{'form'}  = \%::FORM;
     $vars->{'mform'} = \%::MFORM;
 
+    # What does a "--do_not_change--" field look like (if any)?
+    my $dontchange = $vars->{'form'}->{'dontchange'};
+
     # Skip all of this if the option has been turned off
     return 1 if (&::Param('usermatchmode') eq 'off');
 
@@ -229,6 +232,9 @@ sub match_field {
 
         next if !defined($vars->{'mform'}->{$field});
 
+        # Skip it if this is a --do_not_change-- field
+        next if $dontchange eq $vars->{'form'}->{$field};
+
         # We need to move the query to $raw_field, where it will be split up,
         # modified by the search, and put back into $::FORM and $::MFORM
         # incrementally.