From f578f79698f5779f20ee8354a3af132fafaf66da Mon Sep 17 00:00:00 2001 From: Simon Green Date: Wed, 29 Jul 2015 05:31:14 -0400 Subject: Bug 399078 - Remove the 'musthavemilestoneonaccept' parameter r=gerv, a=simon --- Bugzilla/Bug.pm | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'Bugzilla/Bug.pm') diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index ff8f651e4..2cc9aadb0 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1529,20 +1529,6 @@ sub _check_bug_status { { old => $old_status ? $old_status->name : undef, new => $new_status->name, field => 'bug_status' }); } - - if (ref $invocant - && ($new_status->name eq 'IN_PROGRESS' - # Backwards-compat for the old default workflow. - or $new_status->name eq 'ASSIGNED') - && Bugzilla->params->{"usetargetmilestone"} - && Bugzilla->params->{"musthavemilestoneonaccept"} - # musthavemilestoneonaccept applies only if at least two - # target milestones are defined for the product. - && scalar(@{ $product->milestones }) > 1 - && $invocant->target_milestone eq $product->default_milestone) - { - ThrowUserError("milestone_required", { bug => $invocant }); - } if (!blessed $invocant) { $params->{everconfirmed} = $new_status->name eq 'UNCONFIRMED' ? 0 : 1; -- cgit v1.2.3-24-g4f1b