]> _ Git - pmi.git/commitdiff
wait #3805 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Jul 2020 14:17:37 +0000 (16:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 21 Jul 2020 14:17:37 +0000 (16:17 +0200)
app/Templates/Category.php

index e476d52d27b758a8647ca06ef963265731dfb045..2888cf2035c7d4e8227184b43e4392354fc8005b 100644 (file)
@@ -95,6 +95,7 @@ class Category extends Base
                 continue;
             }
 
+            $product->setLocale($menu->getLocale());
             $canonical = $href = $product->getSlugOrTitleAttribute();
             if ($root->findOneByHref($canonical) !== null) {
                 continue;
@@ -113,6 +114,11 @@ class Category extends Base
         }
     }
 
+    /**
+     * @param $variant
+     * @param $locale
+     * @return Product[]
+     */
     public static function _getProducts($variant, $locale)
     {