]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1638022 - Phabbugz should not try to set needs-review when the revision is closed...
authordklawren <dklawren@users.noreply.github.com>
Fri, 15 May 2020 15:36:39 +0000 (11:36 -0400)
committerGitHub <noreply@github.com>
Fri, 15 May 2020 15:36:39 +0000 (11:36 -0400)
extensions/PhabBugz/lib/Feed.pm

index baa887677de074dec7273fa40052bc7e06557013..a3290fbbe6b27a091e0d89d8b6161d8713389bb2 100644 (file)
@@ -520,12 +520,14 @@ sub process_revision_change {
   }
 
   # Set status to request-review if revision is new and
-  # in draft state and not changes-planned
+  # in draft state and not changes-planned, closed, or abandoned.
   if ($is_new
       && $revision->status ne 'changes-planned'
+      && $revision->status ne 'closed'
+      && $revision->status ne 'abandoned'
       && ($revision->is_draft && !$revision->hold_as_draft))
   {
-    INFO("Moving from draft to needs-review");
+    INFO('Moving from draft to needs-review');
     $revision->set_status('request-review');
   }