From: Dave Lawrence Date: Thu, 17 Jan 2013 17:49:28 +0000 (-0500) Subject: Bug 752946 - Fixed uninitialized error X-Git-Tag: bugzilla-4.2.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5681c71471fad4081a3b8f620a8f586e0a35a6d8;p=thirdparty%2Fbugzilla.git Bug 752946 - Fixed uninitialized error --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index f694d06217..c557930b9b 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1916,7 +1916,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;