瀏覽代碼

Merge branch 'hotfix/hotfix_231003_2'

master
Guillaume Bourgeois 1 年之前
父節點
當前提交
8ada9eaf90
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      common/logic/Distribution/ProductDistribution/Service/ProductDistributionBuilder.php

+ 2
- 1
common/logic/Distribution/ProductDistribution/Service/ProductDistributionBuilder.php 查看文件

@@ -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…
取消
儲存