diff options
Diffstat (limited to 'models/customFields.js')
-rw-r--r-- | models/customFields.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/customFields.js b/models/customFields.js index a5eb8906..6b5697c1 100644 --- a/models/customFields.js +++ b/models/customFields.js @@ -302,6 +302,7 @@ if (Meteor.isServer) { ) { Authentication.checkUserId(req.userId); const paramBoardId = req.params.boardId; + const board = Boards.findOne({ _id: paramBoardId }); const id = CustomFields.direct.insert({ name: req.body.name, type: req.body.type, @@ -309,7 +310,7 @@ if (Meteor.isServer) { showOnCard: req.body.showOnCard, automaticallyOnCard: req.body.automaticallyOnCard, showLabelOnMiniCard: req.body.showLabelOnMiniCard, - boardIds: { $in: [paramBoardId] }, + boardIds: [board._id], }); const customField = CustomFields.findOne({ |