summaryrefslogtreecommitdiffstats
path: root/models/customFields.js
diff options
context:
space:
mode:
Diffstat (limited to 'models/customFields.js')
-rw-r--r--models/customFields.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/models/customFields.js b/models/customFields.js
index 6c5fe7c4..38481d8c 100644
--- a/models/customFields.js
+++ b/models/customFields.js
@@ -71,6 +71,12 @@ if (Meteor.isServer) {
Activities.remove({
customFieldId: doc._id,
});
+
+ Cards.update(
+ {'boardId': doc.boardId, 'customFields._id': doc._id},
+ {$pull: {'customFields': {'_id': doc._id}}},
+ {multi: true}
+ );
});
}