Skip to content

Commit

Permalink
ecs
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Sep 3, 2024
1 parent be219b0 commit af10819
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elements/CommerceProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public function save($element, $settings): bool
{
$this->beforeSave($element, $settings);

if($this->element->getIsDraft()) {
if ($this->element->getIsDraft()) {
$this->element->setDirtyAttributes(['variants']);
$this->element = Craft::$app->getDrafts()->applyDraft($this->element);
}
Expand Down

0 comments on commit af10819

Please sign in to comment.