cart is dirty even if an item is inactive and will be removed

This commit is contained in:
Steffen Mahler 2020-07-07 10:47:41 +02:00
parent 9fc7da0847
commit 048d803d4d
1 changed files with 2 additions and 1 deletions

View File

@ -653,6 +653,7 @@ class Cart
if ($validationResult->isItemInactive()) {
$this->removeItem($item->id);
$isDirty = true;
session()->flash('info', __('shop::app.checkout.cart.item.inactive'));
}
@ -668,7 +669,7 @@ class Cart
$isDirty |= $validationResult->isCartDirty();
}
return !$isDirty;
return ! $isDirty;
}
/**