Skip to content

Commit fa49579

Browse files
committed
Sorting by Websites not working in product grid in backoffice #20511
1 parent e61b399 commit fa49579

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/Catalog/Ui/Component/Listing/Columns

1 file changed

+3
-2
lines changed

app/code/Magento/Catalog/Ui/Component/Listing/Columns/Websites.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,14 @@ public function __construct(
5050
ContextInterface $context,
5151
UiComponentFactory $uiComponentFactory,
5252
StoreManagerInterface $storeManager,
53-
Helper $resourceHelper,
53+
Helper $resourceHelper = null,
5454
array $components = [],
5555
array $data = []
5656
) {
5757
parent::__construct($context, $uiComponentFactory, $components, $data);
58+
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
5859
$this->storeManager = $storeManager;
59-
$this->_resourceHelper = $resourceHelper;
60+
$this->_resourceHelper = $resourceHelper ?: $objectManager->get(Helper::class);
6061
}
6162

6263
/**

0 commit comments

Comments
 (0)