mirror of
https://github.com/wekan/wekan.git
synced 2025-12-24 03:10:12 +01:00
Sorry marc1006, I had to revert deepcode.ai arrow function fixes because
Python API docs generator does not work all when code has arrow functions. Thanks to xet7 !
This commit is contained in:
parent
252c4b19f9
commit
f9018fc3a8
5 changed files with 12 additions and 12 deletions
|
|
@ -70,7 +70,7 @@ Checklists.helpers({
|
|||
this._id = null;
|
||||
this.cardId = newCardId;
|
||||
const newChecklistId = Checklists.insert(this);
|
||||
ChecklistItems.find({ checklistId: oldChecklistId }).forEach(item => {
|
||||
ChecklistItems.find({ checklistId: oldChecklistId }).forEach(function(item) {
|
||||
item._id = null;
|
||||
item.checklistId = newChecklistId;
|
||||
item.cardId = newCardId;
|
||||
|
|
@ -100,13 +100,13 @@ Checklists.helpers({
|
|||
},
|
||||
checkAllItems() {
|
||||
const checkItems = ChecklistItems.find({ checklistId: this._id });
|
||||
checkItems.forEach(item => {
|
||||
checkItems.forEach(function(item) {
|
||||
item.check();
|
||||
});
|
||||
},
|
||||
uncheckAllItems() {
|
||||
const checkItems = ChecklistItems.find({ checklistId: this._id });
|
||||
checkItems.forEach(item => {
|
||||
checkItems.forEach(function(item) {
|
||||
item.uncheck();
|
||||
});
|
||||
},
|
||||
|
|
@ -307,7 +307,7 @@ if (Meteor.isServer) {
|
|||
items = [items];
|
||||
}
|
||||
}
|
||||
items.forEach((item, idx) => {
|
||||
items.forEach(function(item, idx) {
|
||||
ChecklistItems.insert({
|
||||
cardId: paramCardId,
|
||||
checklistId: id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue