mirror of
https://github.com/wekan/wekan.git
synced 2026-01-29 20:56:09 +01:00
Per-User and Board-level data save fixes. Part 2.
Thanks to xet7 !
This commit is contained in:
parent
edf0f3c05b
commit
58e970d685
5 changed files with 981 additions and 21 deletions
|
|
@ -265,17 +265,19 @@ UserPositionHistory.helpers({
|
|||
break;
|
||||
}
|
||||
case 'checklistItem': {
|
||||
const item = ChecklistItems.findOne(this.entityId);
|
||||
if (item) {
|
||||
const sort = this.previousSort !== undefined ? this.previousSort : item.sort;
|
||||
const checklistId = this.previousState?.checklistId || item.checklistId;
|
||||
|
||||
ChecklistItems.update(item._id, {
|
||||
$set: {
|
||||
sort,
|
||||
checklistId,
|
||||
},
|
||||
});
|
||||
if (typeof ChecklistItems !== 'undefined') {
|
||||
const item = ChecklistItems.findOne(this.entityId);
|
||||
if (item) {
|
||||
const sort = this.previousSort !== undefined ? this.previousSort : item.sort;
|
||||
const checklistId = this.previousState?.checklistId || item.checklistId;
|
||||
|
||||
ChecklistItems.update(item._id, {
|
||||
$set: {
|
||||
sort,
|
||||
checklistId,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
@ -494,5 +496,3 @@ Meteor.methods({
|
|||
return { undoneCount, totalChanges: changesToUndo.length };
|
||||
},
|
||||
});
|
||||
|
||||
export default UserPositionHistory;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue