Преглед на файлове

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…
Отказ
Запис