fix: always restore archived cards if wip limit is soft

This commit is contained in:
amadilsons 2017-10-31 21:20:53 +00:00
parent fdd1aad80d
commit c17f26f6ba

View file

@ -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;