From 41016572ac532949743ed56bd76b8cd0b5928aa4 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 17 Jan 2013 12:45:43 -0500 Subject: Bug 752946 - Fixed uninitialized error --- Bugzilla/Bug.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index c67093d6b..547e35fa7 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -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; -- cgit v1.2.3-24-g4f1b