ソースを参照

Correctif #14

develop
Fab 1年前
コミット
4dc04dbcf0
1個のファイルの変更5行の追加4行の削除
  1. +5
    -4
      Repository/Product/ProductFamilyStore.php

+ 5
- 4
Repository/Product/ProductFamilyStore.php ファイルの表示

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

読み込み中…
キャンセル
保存