diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-10-05 17:22:03 +0200 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-10-05 17:22:03 +0200 |
commit | f77da76c682ec7ad1b5e141d113d4b74371f46ae (patch) | |
tree | ae82531e30e26596ebc988b2abccb5dc687b72fe /models | |
parent | 214fe6a61f60513d3ddfc9eee423c1b932ff8463 (diff) | |
download | wekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.tar.gz wekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.tar.bz2 wekan-f77da76c682ec7ad1b5e141d113d4b74371f46ae.zip |
added i18n translation, minor fix
Diffstat (limited to 'models')
-rw-r--r-- | models/lists.js | 4 |
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' } |