Sfoglia il codice sorgente

ProductFamilySectionPropertySolver : correctif comparaison objet Section

develop
Guillaume Bourgeois 2 anni fa
parent
commit
e020771ec2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      Solver/Product/ProductFamilySectionPropertySolver.php

+ 1
- 1
Solver/Product/ProductFamilySectionPropertySolver.php Vedi File

@@ -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…
Annulla
Salva