浏览代码

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

正在加载...
取消
保存