]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 752946 - Fixed uninitialized error
authorDave Lawrence <dlawrence@mozilla.com>
Thu, 17 Jan 2013 17:45:43 +0000 (12:45 -0500)
committerDave Lawrence <dlawrence@mozilla.com>
Thu, 17 Jan 2013 17:45:43 +0000 (12:45 -0500)
Bugzilla/Bug.pm

index c67093d6b4ac4c527b4fa8c41e97bbf3352a1a6c..547e35fa7fadf02d9c238043f26141fd135a4ea2 100644 (file)
@@ -1935,7 +1935,7 @@ sub _check_target_milestone {
     $target = $product->default_milestone if !defined $target;
     my $object = Bugzilla::Milestone->check(
         { product => $product, name => $target });
-    if ($object->name ne $old_target && !$object->is_active) {
+    if ($old_target && $object->name ne $old_target && !$object->is_active) {
         ThrowUserError('value_inactive', { class => ref($object),  value => $target });
     }
     return $object->name;