Przeglądaj źródła

Correctif #14

develop
Fab 2 lat temu
rodzic
commit
4dc04dbcf0
1 zmienionych plików z 5 dodań i 4 usunięć
  1. +5
    -4
      Repository/Product/ProductFamilyStore.php

+ 5
- 4
Repository/Product/ProductFamilyStore.php Wyświetl plik

@@ -54,10 +54,11 @@ class ProductFamilyStore extends AbstractStore

public function isReductionCatalogDisplayed(ProductFamilyInterface $productFamily): bool
{
$reductionCatalog = $this->reductionCatalogStore->setMerchant($this->merchant)
->getByProductFamily($productFamily);
//TODO à discuter
// $reductionCatalog = $this->reductionCatalogStore->setMerchant($this->merchant)
// ->getByProductFamily($productFamily);

return $this->hasReductionCatalog($productFamily) && $reductionCatalog->isDisplayed();
return $this->hasReductionCatalog($productFamily) && $productFamily->getReductionCatalog()->isDisplayed();
}

public function hasReductionCatalog(ProductFamilyInterface $productFamily): bool
@@ -65,7 +66,7 @@ class ProductFamilyStore extends AbstractStore
$reductionCatalog = $this->reductionCatalogStore->setMerchant($this->merchant)
->getByProductFamily($productFamily);

return (bool)$reductionCatalog;
return (bool)$productFamily->getReductionCatalog();
}

public function getByParentCategory(

Ładowanie…
Anuluj
Zapisz