Skip to content

Commit

Permalink
Do not show disabled categories (remove legacy core fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilja Lapkovskis committed Jul 11, 2019
1 parent cffd426 commit 95dfbdc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 189 deletions.
2 changes: 1 addition & 1 deletion src/Model/Resolver/CategoryTree.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private function getCategoryId(array $args): int
return (int)$category->getId();
}

throw new GraphQlInputException(__('"id for category should be specified'));
throw new GraphQlInputException(__('"id or url for category must be specified'));
}
}

185 changes: 0 additions & 185 deletions src/Model/Resolver/Products/DataProvider/CategoryTree.php

This file was deleted.

3 changes: 0 additions & 3 deletions src/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@
<preference for="Magento\CatalogGraphQl\Model\Resolver\Product\MediaGalleryEntries"
type="ScandiPWA\CatalogGraphQl\Model\Resolver\Product\MediaGalleryEntries"/>

<preference for="Magento\CatalogGraphQl\Model\Resolver\Products\DataProvider\CategoryTree"
type="ScandiPWA\CatalogGraphQl\Model\Resolver\Products\DataProvider\CategoryTree"/>

<preference for="Magento\CatalogGraphQl\Model\Resolver\Products\SearchResult"
type="ScandiPWA\CatalogGraphQl\Model\Resolver\Products\SearchResult"/>

Expand Down

0 comments on commit 95dfbdc

Please sign in to comment.