Skip to content

Commit

Permalink
Solve CategoryLink Object error (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangallegoc committed Sep 26, 2023
1 parent 9e222ed commit fb43b17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Model/ProductRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,11 @@ private function getCategoriesInformation($categories)
{
$categoryIds = [];
foreach ($categories as $category) {
$categoryIds[$category['category_id']] = true;
if(is_array($category)){
$categoryIds[$category['category_id']] = true;
} else {
$categoryIds[$category->getCategoryId()] = true;
}
}

// Load paths of product categories to load their parents
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doofinder/doofinder-magento2",
"version": "0.13.4",
"version": "0.13.5",
"description": "Doofinder module for Magento 2",
"type": "magento2-module",
"require": {
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Doofinder_Feed" setup_version="0.13.4">
<module name="Doofinder_Feed" setup_version="0.13.5">
<sequence>
<module name="Magento_Integration" />
</sequence>
Expand Down

0 comments on commit fb43b17

Please sign in to comment.