From 13546a71cd7169549d08546d56daca0859dc73cb Mon Sep 17 00:00:00 2001 From: Alexander Klakovskiy <klakovskiy@gmail.com> Date: Wed, 22 Nov 2017 14:16:31 +0300 Subject: [PATCH] Update Website.php Fix bug https://github.com/magento/magento2/issues/12393 --- .../Ui/DataProvider/Product/Form/Modifier/Manager/Website.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Weee/Ui/DataProvider/Product/Form/Modifier/Manager/Website.php b/app/code/Magento/Weee/Ui/DataProvider/Product/Form/Modifier/Manager/Website.php index c5990c8a80b..2374e2e57a5 100644 --- a/app/code/Magento/Weee/Ui/DataProvider/Product/Form/Modifier/Manager/Website.php +++ b/app/code/Magento/Weee/Ui/DataProvider/Product/Form/Modifier/Manager/Website.php @@ -68,7 +68,7 @@ class Website if ($storeId = $this->locator->getStore()->getId()) { /** @var WebsiteInterface $website */ $website = $this->storeManager->getStore($storeId)->getWebsite(); - $websites[$website->getId()] = [ + $websites[] = [ 'value' => $website->getId(), 'label' => $this->formatLabel( $website->getName(), @@ -81,7 +81,7 @@ class Website if (!in_array($website->getId(), $product->getWebsiteIds())) { continue; } - $websites[$website->getId()] = [ + $websites[] = [ 'value' => $website->getId(), 'label' => $this->formatLabel( $website->getName(), -- GitLab