diff --git a/src/Model/Variation/Variation.php b/src/Model/Variation/Variation.php index 6ac081b3..87e5daf3 100755 --- a/src/Model/Variation/Variation.php +++ b/src/Model/Variation/Variation.php @@ -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()