瀏覽代碼

ProductFamilySectionPropertySolver : correctif comparaison objet Section

develop
Guillaume Bourgeois 2 年之前
父節點
當前提交
e020771ec2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      Solver/Product/ProductFamilySectionPropertySolver.php

+ 1
- 1
Solver/Product/ProductFamilySectionPropertySolver.php 查看文件

@@ -12,7 +12,7 @@ class ProductFamilySectionPropertySolver
public function getProductFamilySectionProperty(ProductFamilyInterface $productFamily, SectionInterface $section):? ProductFamilySectionPropertyInterface
{
foreach ($productFamily->getProductFamilySectionProperties() as $productFamilySectionProperty) {
if ($productFamilySectionProperty->getSection() == $section) {
if ($productFamilySectionProperty->getSection() === $section) {
return $productFamilySectionProperty;
}
}

Loading…
取消
儲存