]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7513 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 May 2025 15:54:39 +0000 (17:54 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 7 May 2025 15:54:39 +0000 (17:54 +0200)
app/Http/Controllers/Admin/Operations/FluidbookPublication/Services/PumaOperation.php

index 5227c0a0b777f1d1aa03765675ce3d9bc117452c..0874df4985da2cfefeb0a4e07ac692c883f4b8f9 100644 (file)
@@ -44,13 +44,12 @@ trait PumaOperation
             }
             $r[$reference] = $data;
             $title = trim(trim($data['Catégorie'] ?? '') . ' ' . trim($data['RBU'] ?? ''));
-            $subtitle = trim(trim($data['Age Group'] ?? '') . ' - ' . trim($data['Product Line'] ?? ''), '- ');
+            $subtitle = trim(trim($data['Age Group'] ?? '') . ' - ' . $data['Gender'] . ' - ' . trim($data['Product Line'] ?? ''), '- ');
             $key = md5($title . $subtitle);
             if (!isset($planches[$key])) {
                 $planches[$key] = ['class' => $data['Catégorie'], 'title' => $title, 'subtitle' => $subtitle, 'products' => []];
             }
             $planches[$key]['products'][$reference] = $data;
-
         }
 
         $html = '<html>';
@@ -104,7 +103,6 @@ trait PumaOperation
     protected function _getPumaPlanogrammeCSS()
     {
         return file_get_contents(resource_path('puma/planogramme/style.css'));
-
     }
 
 }