summaryrefslogtreecommitdiffstats
path: root/client/components
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-24 00:21:23 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-26 14:32:50 +0300
commit4ac6a507cdd3e7a4610c8961e0a9f76f945a5e6d (patch)
tree5811bc2603cede163dbd64f6aa54ad5e1b4c8fb9 /client/components
parentcd36194477593f12103bc3d69e3cdd594c831099 (diff)
downloadwekan-4ac6a507cdd3e7a4610c8961e0a9f76f945a5e6d.tar.gz
wekan-4ac6a507cdd3e7a4610c8961e0a9f76f945a5e6d.tar.bz2
wekan-4ac6a507cdd3e7a4610c8961e0a9f76f945a5e6d.zip
Get rid of old implementation for substacks
Diffstat (limited to 'client/components')
-rw-r--r--client/components/cards/cardDetails.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 8d917830..4731e448 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -136,7 +136,7 @@ BlazeComponent.extendComponent({
Subtasks.update(subtask._id, {
$set: {
- sort: sortIndex.base,
+ subtaskSort: sortIndex.base,
},
});
},
@@ -449,13 +449,13 @@ Template.copyCardPopup.events({
});
// copy subtasks
- cursor = Subtasks.find({cardId: oldId});
+ cursor = Cards.find({parentId: oldId});
cursor.forEach(function() {
'use strict';
const subtask = arguments[0];
- subtask.cardId = _id;
+ subtask.parentId = _id;
subtask._id = null;
- /* const newSubtaskId = */ Subtasks.insert(subtask);
+ /* const newSubtaskId = */ Cards.insert(subtask);
});
// copy card comments
@@ -509,13 +509,13 @@ Template.copyChecklistToManyCardsPopup.events({
});
// copy subtasks
- cursor = Subtasks.find({cardId: oldId});
+ cursor = Cards.find({parentId: oldId});
cursor.forEach(function() {
'use strict';
const subtask = arguments[0];
- subtask.cardId = _id;
+ subtask.parentId = _id;
subtask._id = null;
- /* const newSubtaskId = */ Subtasks.insert(subtask);
+ /* const newSubtaskId = */ Cards.insert(subtask);
});
// copy card comments