فهرست منبع

Now new boards do not have any labels added by default.

Thanks to tedkoch and xet7 !

Related https://github.com/wekan/wekan/discussions/3835#discussioncomment-836223 Issue 7.
Lauri Ojansivu 4 سال پیش
والد
کامیت
481404e8d7
1فایلهای تغییر یافته به همراه3 افزوده شده و 0 حذف شده
  1. 3 0
      models/boards.js

+ 3 - 0
models/boards.js

@@ -109,6 +109,8 @@ Boards.attachSchema(
        * List of labels attached to a board
        * List of labels attached to a board
        */
        */
       type: [Object],
       type: [Object],
+      optional: true,
+      /* Commented out, so does not create labels to new boards.
       // eslint-disable-next-line consistent-return
       // eslint-disable-next-line consistent-return
       autoValue() {
       autoValue() {
         if (this.isInsert && !this.isSet) {
         if (this.isInsert && !this.isSet) {
@@ -122,6 +124,7 @@ Boards.attachSchema(
           }));
           }));
         }
         }
       },
       },
+      */
     },
     },
     'labels.$._id': {
     'labels.$._id': {
       /**
       /**