diff options
author | Malf Furious <m@lfurio.us> | 2019-01-12 19:42:33 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2019-01-12 19:42:33 -0500 |
commit | c7601e5305295a635c6ddac61816aac77caa7bb7 (patch) | |
tree | 507f51f271231f3d51f41e9df3bfd6d2ff72ee08 | |
parent | 2263cf0953872c09fe1a1158ebb841f74fb9e3ea (diff) | |
download | scrott-c7601e5305295a635c6ddac61816aac77caa7bb7.tar.gz scrott-c7601e5305295a635c6ddac61816aac77caa7bb7.zip |
Automatically signoff assignee when closing issue
For the Scrott alpha, there is no way for assignees to signoff their
work. As a workaround, I am now just always signing off somebody when
they close an issue. This will slightly improve the user experience for
now, but I'm leaving the real fix for the beta.
Signed-off-by: Malf Furious <m@lfurio.us>
-rw-r--r-- | app/model/issue.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/model/issue.php b/app/model/issue.php index 7159015..b78e93a 100644 --- a/app/model/issue.php +++ b/app/model/issue.php @@ -68,6 +68,7 @@ if (isAction("iss-mesg-add")) } else { + $issue->signoffAssignee($user); $log = mesg::initNewLog("%s closed issue", $user, $issue); } } @@ -97,6 +98,7 @@ if (isAction("iss-mesg-add")) return; } + $issue->signoffAssignee($user); $issue->close($user); logError(NOTICE, "Issue #" . $issue->numb . " closed"); $log = mesg::initNewLog("%s closed issue", $user, $issue); |