summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authoramadilsons <joao.amado.95@gmail.com>2017-10-05 17:22:03 +0200
committeramadilsons <joao.amado.95@gmail.com>2017-10-05 17:22:03 +0200
commitf77da76c682ec7ad1b5e141d113d4b74371f46ae (patch)
treeae82531e30e26596ebc988b2abccb5dc687b72fe /models
parent214fe6a61f60513d3ddfc9eee423c1b932ff8463 (diff)
downloadwekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.tar.gz
wekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.tar.bz2
wekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.zip
added i18n translation, minor fix
Diffstat (limited to 'models')
-rw-r--r--models/lists.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/lists.js b/models/lists.js
index 877b3d83..1b999b07 100644
--- a/models/lists.js
+++ b/models/lists.js
@@ -142,8 +142,8 @@ Meteor.methods({
enableWipLimit(listId) {
check(listId, String);
const list = Lists.findOne({ _id: listId });
- if( list.getWipLimit() ){ // Necessary check to avoid exceptions for the case where the doc doesn't have the wipLimit field yet set
- list.toggleWipLimit(!list.wipLimit.enabled);
+ if(list.getWipLimit()){ // Necessary check to avoid exceptions for the case where the doc doesn't have the wipLimit field yet set
+ list.toggleWipLimit(!list.getWipLimit('enabled'));
} else {
list.toggleWipLimit(true); // First time toggle is always to 'true' because default is 'false'
}