]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 399078 - Remove the 'musthavemilestoneonaccept' parameter
authorSimon Green <mail@simon.green>
Wed, 29 Jul 2015 09:31:14 +0000 (05:31 -0400)
committerSimon Green <mail@simon.green>
Wed, 29 Jul 2015 09:31:14 +0000 (05:31 -0400)
r=gerv, a=simon

Bugzilla/API/1_0/Resource/Bugzilla.pm
Bugzilla/Bug.pm
Bugzilla/Config/BugChange.pm
Bugzilla/WebService/Bugzilla.pm
docs/en/rst/administering/parameters.rst
docs/en/rst/api/core/v1/bugzilla.rst
template/en/default/admin/params/bugchange.html.tmpl
template/en/default/global/user-error.html.tmpl

index b2e7105f622e6b791d1c60dffcc057ae970a4365..de9925e695a3da888bfe085261ea5d0d783a21f7 100644 (file)
@@ -76,7 +76,6 @@ use constant PARAMETERS_LOGGED_IN => qw(
     maintainer
     maxattachmentsize
     maxlocalattachment
-    musthavemilestoneonaccept
     noresolveonopenblockers
     password_complexity
     rememberlogin
@@ -458,7 +457,6 @@ A logged-in user can access the following parameters (listed alphabetically):
     C<maintainer>,
     C<maxattachmentsize>,
     C<maxlocalattachment>,
-    C<musthavemilestoneonaccept>,
     C<noresolveonopenblockers>,
     C<password_complexity>,
     C<rememberlogin>,
index ff8f651e4e60beb20da4c0f51c27dc51304bfef3..2cc9aadb0a4e007ac2e1df12ba1373ae3a3a2a53 100644 (file)
@@ -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;
index 212f4c171ab8a6843e7650bdb10c06ae35b8fcde..6126b7f35775a323b9c71aad9a46a2a893a8b402 100644 (file)
@@ -53,12 +53,6 @@ sub get_param_list {
    default => 1
   },
 
-  {
-   name => 'musthavemilestoneonaccept',
-   type => 'b',
-   default => 0
-  },
-
   {
    name => 'commentonchange_resolution',
    type => 'b',
index e1d1b62a1d38d279d2910c77f830024fa5a6e015..a9cef32fc8cd6eb45b20aba2a7da952625cdf0ac 100644 (file)
@@ -70,7 +70,6 @@ use constant PARAMETERS_LOGGED_IN => qw(
     maintainer
     maxattachmentsize
     maxlocalattachment
-    musthavemilestoneonaccept
     password_complexity
     rememberlogin
     requirelogin
@@ -427,7 +426,6 @@ A logged-in user can access the following parameters (listed alphabetically):
     C<maintainer>,
     C<maxattachmentsize>,
     C<maxlocalattachment>,
-    C<musthavemilestoneonaccept>,
     C<password_complexity>,
     C<rememberlogin>,
     C<requirelogin>,
index 5b2eeadc76edbcd2623de511051a97e173490345..f040bcfc67fa203b0bcdef92eadec0f8fca0e8a8 100644 (file)
@@ -262,9 +262,6 @@ letsubmitterchoosepriority
 letsubmitterchoosemilestone
     If this is on, then people submitting bugs can choose the Target Milestone for that bug. If off, then all bugs initially have the default milestone for the product being filed in.
 
-musthavemilestoneonaccept
-    If you are using Target Milestone, do you want to require that the milestone be set in order for a user to set a bug's status to IN_PROGRESS?
-
 commenton*
     All these fields allow you to dictate what changes can pass
     without comment and which must have a comment from the
index 67029cc1ff6fff02cec1d560d6d14215139e79a6..c2458bd0f59e23148fa28f66f5fc3dff1b4073f0 100644 (file)
@@ -186,7 +186,6 @@ Example response for authenticated user:
           "maintainer" : "admin@example.com",
           "maxattachmentsize" : "1000",
           "maxlocalattachment" : "0",
-          "musthavemilestoneonaccept" : "0",
           "password_complexity" : "no_constraints",
           "rememberlogin" : "on",
           "requirelogin" : "0",
@@ -224,7 +223,6 @@ A logged-in user can access the following parameters (listed alphabetically):
 * maintainer
 * maxattachmentsize
 * maxlocalattachment
-* musthavemilestoneonaccept
 * password_complexity
 * rememberlogin
 * requirelogin
index 89553ad7aa10534e46b6bde80511f0e5b7886fbd..feaf8769b6d5229f3c1a48528ccc67568d25b4df 100644 (file)
                                  "If off, then all $terms.bugs initially have the default " _
                                  "milestone for the product being filed in.",
 
-  musthavemilestoneonaccept => 
-    "If you are using ${field_descs.target_milestone}, do you want to require"
-    _ " that the milestone be set in order for a user to set"
-    _ "  ${terms.abug}'s status to ${accept_status}?",
-
   commentonchange_resolution => "If this option is on, the user needs to enter a short " _
                                 "comment if the resolution of the $terms.bug changes.",
 
index d3814f7f3291b57861511cb207232860ff6b36d7..fe548f927f5df6dde608116319eca238bbeaeb79 100644 (file)
     The name of a milestone is limited to [% constants.MAX_MILESTONE_SIZE FILTER html %]
     characters. '[% name FILTER html %]' is too long ([% name.length %] characters).
 
-  [% ELSIF error == "milestone_required" %]
-    [% title = "Milestone Required" %]
-    You must select a target milestone for [% terms.bug %]
-    [%+ bug.id FILTER html %]
-    if you are going to accept it.  Part of accepting 
-    [%+ terms.abug %] is giving an estimate of when it will be fixed.
-
   [% ELSIF error == "milestone_sortkey_invalid" %]
     [% title = "Invalid Milestone Sortkey" %]
     The sortkey '[% sortkey FILTER html %]' is not in the range