From 2bb2bdf4ee42943b3b583aafb2514cfd9eb8eb9c Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Sun, 20 Jan 2008 02:45:31 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20143313:=20check=5Fcan=5Fchange=5Ffield()?= =?UTF-8?q?=20is=20no=20longer=20called=20with=20--do=5Fnot=5Fchange--=20a?= =?UTF-8?q?s=20field=20value=20-=20Patch=20by=20Fr=C3=83=C2=A9d=C3=83?= =?UTF-8?q?=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@243576 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/Bug.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Bug.pm b/mozilla/webtools/bugzilla/Bugzilla/Bug.pm index 9f44332630a..722914c5f42 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Bug.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Bug.pm @@ -3211,11 +3211,10 @@ sub CheckIfVotedConfirmed { # $oldvalue - what they are changing it from # $newvalue - what they are changing it to # $PrivilegesRequired - return the reason of the failure, if any -# $data - hash containing relevant parameters, e.g. from the CGI object ################################################################################ sub check_can_change_field { my $self = shift; - my ($field, $oldvalue, $newvalue, $PrivilegesRequired, $data) = (@_); + my ($field, $oldvalue, $newvalue, $PrivilegesRequired) = (@_); my $user = Bugzilla->user; $oldvalue = defined($oldvalue) ? $oldvalue : ''; @@ -3231,7 +3230,6 @@ sub check_can_change_field { return 1; # numeric fields need to be compared using == } elsif (($field eq 'estimated_time' || $field eq 'remaining_time') - && (!$data || $newvalue ne $data->{'dontchange'}) && $oldvalue == $newvalue) { return 1;