فهرست منبع

Allow more than one assignee.

Thanks to xet7 !

Fixes #3302
Lauri Ojansivu 4 سال پیش
والد
کامیت
acf9e7caea
1فایلهای تغییر یافته به همراه12 افزوده شده و 3 حذف شده
  1. 12 3
      models/cards.js

+ 12 - 3
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) {