diff options
author | amadilsons <joao.amado.95@gmail.com> | 2017-10-31 21:20:53 +0000 |
---|---|---|
committer | amadilsons <joao.amado.95@gmail.com> | 2017-10-31 21:20:53 +0000 |
commit | c17f26f6ba793f5f251ccf27f1b26c15f938a788 (patch) | |
tree | 602a5f4ec56b1c9a682eed25591064d29574a5c3 /models | |
parent | fdd1aad80de336061d576b99d86fc94694131af6 (diff) | |
download | wekan-c17f26f6ba793f5f251ccf27f1b26c15f938a788.tar.gz wekan-c17f26f6ba793f5f251ccf27f1b26c15f938a788.tar.bz2 wekan-c17f26f6ba793f5f251ccf27f1b26c15f938a788.zip |
fix: always restore archived cards if wip limit is soft
Diffstat (limited to 'models')
-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 5b752ec3..5de17c6f 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.getWipLimit() && list.getWipLimit('enabled') && list.getWipLimit('value') === list.cards().count()){ + if(!list.getWipLimit('soft') && list.getWipLimit('enabled') && list.getWipLimit('value') === list.cards().count()){ return false; } return true; |