]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 277621 : Uninitialized value message when changing timetracking fields
authortravis%sedsystems.ca <>
Sat, 15 Jan 2005 00:30:00 +0000 (00:30 +0000)
committertravis%sedsystems.ca <>
Sat, 15 Jan 2005 00:30:00 +0000 (00:30 +0000)
Patch by Marc Schumann <wurblzap@gmail.com>   r=justdave   a=justdave

process_bug.cgi

index 69586cf7901b9a0959743cba947c1da086d9490c..4e273aa841ec010162523fb15c3ea9b8e03e344b 100755 (executable)
@@ -91,6 +91,8 @@ if (defined $::FORM{'id'}) {
 # Make sure there are bugs to process.
 scalar(@idlist) || ThrowUserError("no_bugs_chosen");
 
+$::FORM{'dontchange'} = '' unless exists $::FORM{'dontchange'};
+
 # Validate all timetracking fields
 foreach my $field ("estimated_time", "work_time", "remaining_time") {
     if (defined $::FORM{$field}) {
@@ -147,8 +149,6 @@ if (defined $::FORM{'id'}) {
     Bugzilla::FlagType::validate(\%::FORM, $::FORM{'id'});
 }
 
-$::FORM{'dontchange'} = '' unless exists $::FORM{'dontchange'};
-
 ######################################################################
 # End Data/Security Validation
 ######################################################################