Bläddra i källkod

ProcuctDistribution : correctif disableProductDistributionsIncomingByProduct()

master
Guillaume Bourgeois 1 år sedan
förälder
incheckning
229daf95bb
1 ändrade filer med 2 tillägg och 1 borttagningar
  1. +2
    -1
      common/logic/Distribution/ProductDistribution/Service/ProductDistributionBuilder.php

+ 2
- 1
common/logic/Distribution/ProductDistribution/Service/ProductDistributionBuilder.php Visa fil

@@ -105,9 +105,10 @@ class ProductDistributionBuilder extends AbstractBuilder
$distributionsIncomingArray = $this->distributionRepository->findDistributionsIncoming(true);
foreach($distributionsIncomingArray as $distribution) {
ProductDistribution::updateAll([
'active' => false
], [
'id_product' => $product->id,
'id_distribution' => $distribution->id,
'active' => false
]);
}
}

Laddar…
Avbryt
Spara