mirror of
https://github.com/wekan/wekan.git
synced 2026-01-01 23:28:49 +01:00
patch for customFields when deleting them
This commit is contained in:
parent
23a35d9707
commit
5c588b2424
1 changed files with 6 additions and 0 deletions
|
|
@ -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}
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue