Browse Source

Merge tag 'hotfix_231003_2' into develop

hotfix_231003_2
feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
b9beae8670
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      common/logic/Distribution/ProductDistribution/Service/ProductDistributionBuilder.php

+ 2
- 1
common/logic/Distribution/ProductDistribution/Service/ProductDistributionBuilder.php View File

@@ -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
]);
}
}

Loading…
Cancel
Save