summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramadilsons <joao.amado.95@gmail.com>2017-10-31 21:20:53 +0000
committeramadilsons <joao.amado.95@gmail.com>2017-10-31 21:20:53 +0000
commitc17f26f6ba793f5f251ccf27f1b26c15f938a788 (patch)
tree602a5f4ec56b1c9a682eed25591064d29574a5c3
parentfdd1aad80de336061d576b99d86fc94694131af6 (diff)
downloadwekan-c17f26f6ba793f5f251ccf27f1b26c15f938a788.tar.gz
wekan-c17f26f6ba793f5f251ccf27f1b26c15f938a788.tar.bz2
wekan-c17f26f6ba793f5f251ccf27f1b26c15f938a788.zip
fix: always restore archived cards if wip limit is soft
-rw-r--r--models/cards.js2
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;