Skip to content

Commit

Permalink
fix: remove outdated manual publish, use instead (fixes #806)
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Dec 14, 2023
1 parent 05f02bd commit 159ac42
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/Model/Variation/Variation.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,6 @@ public function onBeforeWrite()
if (isset($_POST['ProductAttributes']) && is_array($_POST['ProductAttributes'])) {
$this->AttributeValues()->setByIDList(array_values($_POST['ProductAttributes']));
}

$img = $this->Image();

if ($img && $img->exists()) {
$img->doPublish();
}
}

public function getTitle()
Expand Down

0 comments on commit 159ac42

Please sign in to comment.