Pārlūkot izejas kodu

Correctif statistiques

develop
Guillaume pirms 2 gadiem
vecāks
revīzija
1584d28ca3
1 mainītis faili ar 10 papildinājumiem un 7 dzēšanām
  1. +10
    -7
      Statistic/Product/ProductsSalesStatistic.php

+ 10
- 7
Statistic/Product/ProductsSalesStatistic.php Parādīt failu

@@ -43,14 +43,17 @@ class ProductsSalesStatistic extends Statistic
'label' => 'Total ventes'
]
);

foreach ($this->productFamily->getProducts() as $product) {
$this->productIds[$product->getId()] = $product;
$this->addProperty(
$product->getId(),
[
'label' => $product->getTitle()
]
);
if($product->getId()) {
$this->productIds[$product->getId()] = $product;
$this->addProperty(
$product->getId(),
[
'label' => $product->getTitle()
]
);
}
}
}


Notiek ielāde…
Atcelt
Saglabāt