Skip to content

Commit

Permalink
No need to keep the original SKU appended
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Oct 17, 2024
1 parent 5c0195b commit b38491e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/base/Purchasable.php
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ public function afterSave(bool $isNew): void
}

if ($this->duplicateOf !== null && !$this->getIsRevision() && !$isOwnerDraftApplying) {
$this->sku = PurchasableHelper::tempSku() . '-' . $this->getSku();
$this->sku = PurchasableHelper::tempSku();
// Nullify inventory item so a new one is created
$this->inventoryItemId = null;
}
Expand Down

0 comments on commit b38491e

Please sign in to comment.