From c7601e5305295a635c6ddac61816aac77caa7bb7 Mon Sep 17 00:00:00 2001 From: Malf Furious Date: Sat, 12 Jan 2019 19:42:33 -0500 Subject: 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 --- app/model/issue.php | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3