From bca8dd878edc03fd272707dd0f529fc4af6b9b31 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" Date: Sat, 11 Jun 2011 01:37:04 +0000 Subject: [PATCH] Bug 663208: Recursive "Verify new product details" page when attempting to move multiple bugs to another product r/a=mkanat git-svn-id: svn://10.0.0.236/trunk@262379 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/.bzrrev | 2 +- mozilla/webtools/bugzilla/Bugzilla/Bug.pm | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mozilla/webtools/bugzilla/.bzrrev b/mozilla/webtools/bugzilla/.bzrrev index 07e9b82587c..9500187357e 100644 --- a/mozilla/webtools/bugzilla/.bzrrev +++ b/mozilla/webtools/bugzilla/.bzrrev @@ -1 +1 @@ -7835 \ No newline at end of file +7836 \ No newline at end of file diff --git a/mozilla/webtools/bugzilla/Bugzilla/Bug.pm b/mozilla/webtools/bugzilla/Bugzilla/Bug.pm index 4f5c0f236fe..369c6669d4f 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Bug.pm +++ b/mozilla/webtools/bugzilla/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