From: Frédéric Buclin Date: Sat, 11 Jun 2011 01:31:58 +0000 (+0200) Subject: Bug 663208: Recursive "Verify new product details" page when attempting to move multi... X-Git-Tag: bugzilla-4.0.2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9820bbf787a0b04edbd48d7a26852debc9b5d9c8;p=thirdparty%2Fbugzilla.git Bug 663208: Recursive "Verify new product details" page when attempting to move multiple bugs to another product r/a=mkanat --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index b5952cd89e..7f0191ca4a 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -2120,7 +2120,13 @@ sub _set_global_validator { # other_bugs to set_all in order for it to behave properly. sub set_all { my $self = shift; - my ($params) = @_; + my ($input_params) = @_; + + # Clone the data as we are going to alter it, and this would affect + # subsequent bugs when calling set_all() again, as some fields would + # be modified or no longer defined. + my $params = {}; + %$params = %$input_params; # You cannot mark bugs as duplicate when changing several bugs at once # (because currently there is no way to check for duplicate loops in that