summaryrefslogtreecommitdiffstats
path: root/models/checklistItems.js
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-12-06 01:49:57 +0200
committerLauri Ojansivu <x@xet7.org>2018-12-06 01:49:57 +0200
commitc2e58dcb62a5340f4922d5986342ef821ce4b2b3 (patch)
treedbe27f64e03924a68f8058a7bc1f0bbede08793f /models/checklistItems.js
parentf154c5e52122ba0b8febb79997aa8eae4c31a4ea (diff)
downloadwekan-c2e58dcb62a5340f4922d5986342ef821ce4b2b3.tar.gz
wekan-c2e58dcb62a5340f4922d5986342ef821ce4b2b3.tar.bz2
wekan-c2e58dcb62a5340f4922d5986342ef821ce4b2b3.zip
- Partial fix to unchecked rule, and tips for fixing.
Related #1972
Diffstat (limited to 'models/checklistItems.js')
-rw-r--r--models/checklistItems.js15
1 files changed, 14 insertions, 1 deletions
diff --git a/models/checklistItems.js b/models/checklistItems.js
index 0f85019e..9867dd94 100644
--- a/models/checklistItems.js
+++ b/models/checklistItems.js
@@ -141,10 +141,23 @@ function publishChekListUncompleted(userId, doc){
const boardId = card.boardId;
const checklistId = doc.checklistId;
const checkList = Checklists.findOne({_id:checklistId});
+ // BUGS in IFTTT Rules: https://github.com/wekan/wekan/issues/1972
+ // Currently in checklist all are set as uncompleted/not checked,
+ // IFTTT Rule does not move card to other list.
+ // If following line is negated/changed to:
+ // if(!checkList.isFinished()){
+ // then unchecking of any checkbox will move card to other list,
+ // even when all checkboxes are not yet unchecked.
+ // What is correct code for only moving when all in list is unchecked?
+ // TIPS: Finding files, ignoring some directories with grep -v:
+ // cd wekan
+ // find . | xargs grep 'count' -sl | grep -v .meteor | grep -v node_modules | grep -v .build
+ // Maybe something related here?
+ // wekan/client/components/rules/triggers/checklistTriggers.js
if(checkList.isFinished()){
const act = {
userId,
- activityType: 'checklistUncompleted',
+ activityType: 'uncompleteChecklist',
cardId: doc.cardId,
boardId,
checklistId: doc.checklistId,