]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1599002 - Change bug status from NEW to ASSIGNED when setting assignee from Phabr...
authordklawren <dklawren@users.noreply.github.com>
Mon, 2 Dec 2019 14:32:56 +0000 (09:32 -0500)
committerGitHub <noreply@github.com>
Mon, 2 Dec 2019 14:32:56 +0000 (09:32 -0500)
extensions/PhabBugz/lib/Util.pm

index d61f47a80ba8f9039dbab0cd02138fbf27f1bfd4..11f9a314f30acc9f7229771355987e028e2f7d02 100644 (file)
@@ -91,7 +91,10 @@ sub create_revision_attachment {
   delete $bug->{attachments};
 
   # Assign the bug to the submitter if it isn't already owned.
-  $bug->set_assigned_to($submitter) unless is_bug_assigned($bug);
+  unless (is_bug_assigned($bug)) {
+    $bug->set_assigned_to($submitter);
+    $bug->set_bug_status('ASSIGNED') if $bug->status->name eq 'NEW';
+  }
 
   return $attachment;
 }