Skip to content

Commit 75fde46

Browse files
authored
Merge pull request #15 from channelengine/v1.4.1
Add guidance for multiselect attribute save issues
2 parents 99bcf68 + 72a8c1d commit 75fde46

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Observer/ProductObserver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public function execute(Observer $observer)
5050
try {
5151
$product = $observer->getProduct();
5252

53+
// NOTE: If you experience issues with multiselect attribute values not saving properly for products,
54+
// try commenting out the early return below. This check prevents frequent updates but may interfere
55+
// with multiselect value persistence in some configurations.
5356
if ($this->productHelper->wasUpdatedRecently($product)) {
5457
return;
5558
}

Observer/StockItemObserver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public function execute(Observer $observer)
6060
$productId = $stockItem->getProductId();
6161
$product = $this->productRepository->getById($productId);
6262

63+
// NOTE: If you experience issues with multiselect attribute values not saving properly for products,
64+
// try commenting out the early return below. This check prevents frequent updates but may interfere
65+
// with multiselect value persistence in some configurations.
6366
if ($this->productHelper->wasUpdatedRecently($product)) {
6467
return;
6568
}

0 commit comments

Comments
 (0)