Skip to content

Commit 6928f84

Browse files
author
Anna Bukatar
committed
ACP2E-1136: Product website assignment can be removed from REST API, but admin UI still does not reflect that
1 parent 6bb67b9 commit 6928f84

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier

1 file changed

+3
-2
lines changed

app/code/Magento/Catalog/Ui/DataProvider/Product/Form/Modifier/Websites.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,9 @@ protected function getFieldsForFieldset()
210210
$sortOrder++;
211211
}
212212
}
213-
214-
$children = $this->setDefaultWebsiteIdIfNoneAreSelected($children);
213+
if ($isNewProduct) {
214+
$children = $this->setDefaultWebsiteIdIfNoneAreSelected($children);
215+
}
215216
return $children;
216217
}
217218

0 commit comments

Comments
 (0)