Skip to content

Commit

Permalink
Merge pull request #411 from helloextend/Category_Permission_Fix
Browse files Browse the repository at this point in the history
Patch Release : Update Warranty.php
  • Loading branch information
jm-extend authored Aug 14, 2024
2 parents 2915d9d + f2c47f6 commit 2fb576f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ViewModel/Warranty.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ public function getProductInfo($product)
/** @var Collection $categoryCollection */
$categoryCollection = $product->getCategoryCollection();
$categoryCollection->addAttributeToSelect('name');
$categoryCollection->addIsActiveFilter();
$categoryCollection->addFieldToFilter('is_active', 1);
$categoryCollection->addAttributeToSort('created_at', 'desc');
$category = $categoryCollection->getFirstItem();

Expand Down

0 comments on commit 2fb576f

Please sign in to comment.