diff --git a/ViewModel/Warranty.php b/ViewModel/Warranty.php index fa0275f8..a6486a34 100644 --- a/ViewModel/Warranty.php +++ b/ViewModel/Warranty.php @@ -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();