Browse Source

Merge branch 'hotfix/hotfix_231003_2'

master
Guillaume Bourgeois 1 year ago
parent
commit
8ada9eaf90
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

$distributionsIncomingArray = $this->distributionRepository->findDistributionsIncoming(true); $distributionsIncomingArray = $this->distributionRepository->findDistributionsIncoming(true);
foreach($distributionsIncomingArray as $distribution) { foreach($distributionsIncomingArray as $distribution) {
ProductDistribution::updateAll([ ProductDistribution::updateAll([
'active' => false
], [
'id_product' => $product->id, 'id_product' => $product->id,
'id_distribution' => $distribution->id, 'id_distribution' => $distribution->id,
'active' => false
]); ]);
} }
} }

Loading…
Cancel
Save