diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-10-05 16:46:55 +0200 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-10-05 16:46:55 +0200 |
commit | 214fe6a61f60513d3ddfc9eee423c1b932ff8463 (patch) | |
tree | 9dee4e972a60a55f3c9dd18733c664c95520a248 /models/cards.js | |
parent | c865bfe49785181d97b25cb683c0ed37d82c1a69 (diff) | |
download | wekan-214fe6a61f60513d3ddfc9eee423c1b932ff8463.tar.gz wekan-214fe6a61f60513d3ddfc9eee423c1b932ff8463.tar.bz2 wekan-214fe6a61f60513d3ddfc9eee423c1b932ff8463.zip |
feature implemented, known bugs fixed
Diffstat (limited to 'models/cards.js')
-rw-r--r-- | models/cards.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/cards.js b/models/cards.js index 7d66bf8b..5b752ec3 100644 --- a/models/cards.js +++ b/models/cards.js @@ -182,7 +182,7 @@ Cards.helpers({ canBeRestored() { const list = Lists.findOne({_id: this.listId}); - if(list.wipLimit.enabled && list.wipLimit.value == list.cards().count()){ + if(list.getWipLimit() && list.getWipLimit('enabled') && list.getWipLimit('value') === list.cards().count()){ return false; } return true; |