summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-01-17 18:45:43 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-01-17 18:45:43 +0100
commit41016572ac532949743ed56bd76b8cd0b5928aa4 (patch)
tree5c9ba66849a0f653e7a7365457ab9b0fb750e276 /Bugzilla
parentc08eabfab5f747ad1031fb9276f706b31fd89223 (diff)
downloadbugzilla-41016572ac532949743ed56bd76b8cd0b5928aa4.tar.gz
bugzilla-41016572ac532949743ed56bd76b8cd0b5928aa4.tar.xz
Bug 752946 - Fixed uninitialized error
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Bug.pm2
1 files changed, 1 insertions, 1 deletions
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;