From acf9e7caeaf59e1030ae1014c0cb2fb7dae27147 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 16 Oct 2020 23:56:20 +0300 Subject: [PATCH] Allow more than one assignee. Thanks to xet7 ! Fixes #3302 --- models/cards.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/models/cards.js b/models/cards.js index 04d187b3c..7cd274a31 100644 --- a/models/cards.js +++ b/models/cards.js @@ -1412,15 +1412,24 @@ Cards.mutations({ assignAssignee(assigneeId) { // If there is not any assignee, allow one assignee, not more. + /* if (this.getAssignees().length === 0) { return { $addToSet: { assignees: assigneeId, }, }; - } else { - return false; - } + */ + // Allow more that one assignee: + // https://github.com/wekan/wekan/issues/3302 + return { + $addToSet: { + assignees: assigneeId, + }, + }; + //} else { + // return false, + //} }, unassignMember(memberId) {