Skip to content

Commit e2cb736

Browse files
committed
MAGETWO-99091: Name of categories in the Category tree on Product Edit page is not displayed according to the selected store view scope
- Fixed returnable method type
1 parent aa378d6 commit e2cb736

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,10 +395,10 @@ private function retrieveShownCategoriesIds(int $storeId, string $filter = '') :
395395
*
396396
* @param int $storeId
397397
* @param array $shownCategoriesIds
398-
* @return array
398+
* @return array|null
399399
* @throws LocalizedException
400400
*/
401-
private function retrieveCategoriesTree(int $storeId, array $shownCategoriesIds) : array
401+
private function retrieveCategoriesTree(int $storeId, array $shownCategoriesIds) : ?array
402402
{
403403
/* @var $collection \Magento\Catalog\Model\ResourceModel\Category\Collection */
404404
$collection = $this->categoryCollectionFactory->create();

0 commit comments

Comments
 (0)