Przeglądaj źródła

fix: always restore archived cards if wip limit is soft

amadilsons 7 lat temu
rodzic
commit
c17f26f6ba
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      models/cards.js

+ 1 - 1
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;