summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2011-06-11 03:30:08 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2011-06-11 03:30:08 +0200
commitb326ea1e0b07ca34086fec764ff0bba784e5ad30 (patch)
tree8eedd8ce3a073050ba142bd20eb6ba35d905a85b
parent3b85fdcaf2ab909a7c3b335c53b9e54a11d1b64f (diff)
downloadbugzilla-b326ea1e0b07ca34086fec764ff0bba784e5ad30.tar.gz
bugzilla-b326ea1e0b07ca34086fec764ff0bba784e5ad30.tar.xz
Bug 663208: Recursive "Verify new product details" page when attempting to move multiple bugs to another product
r/a=mkanat
-rw-r--r--Bugzilla/Bug.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm
index 4f5c0f236..369c6669d 100644
--- a/Bugzilla/Bug.pm
+++ b/Bugzilla/Bug.pm
@@ -2140,7 +2140,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