diff options
author | Simon Green <mail@simon.green> | 2015-07-29 11:31:14 +0200 |
---|---|---|
committer | Simon Green <mail@simon.green> | 2015-07-29 11:31:14 +0200 |
commit | f578f79698f5779f20ee8354a3af132fafaf66da (patch) | |
tree | 04af0be4f2ca195d5aadaccd3aea359a9d67cf97 /Bugzilla/Bug.pm | |
parent | d373bb13a51a74ef77cf800fdc77a30ab9ac9d17 (diff) | |
download | bugzilla-f578f79698f5779f20ee8354a3af132fafaf66da.tar.gz bugzilla-f578f79698f5779f20ee8354a3af132fafaf66da.tar.xz |
Bug 399078 - Remove the 'musthavemilestoneonaccept' parameter
r=gerv, a=simon
Diffstat (limited to 'Bugzilla/Bug.pm')
-rw-r--r-- | Bugzilla/Bug.pm | 14 |
1 files changed, 0 insertions, 14 deletions
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; |