Commit 41016572 authored by Dave Lawrence's avatar Dave Lawrence

Bug 752946 - Fixed uninitialized error

parent c08eabfa
...@@ -1935,7 +1935,7 @@ sub _check_target_milestone { ...@@ -1935,7 +1935,7 @@ sub _check_target_milestone {
$target = $product->default_milestone if !defined $target; $target = $product->default_milestone if !defined $target;
my $object = Bugzilla::Milestone->check( my $object = Bugzilla::Milestone->check(
{ product => $product, name => $target }); { 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 }); ThrowUserError('value_inactive', { class => ref($object), value => $target });
} }
return $object->name; return $object->name;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment