Skip to content

Commit

Permalink
Merge pull request #78 from PrestaShop/dev
Browse files Browse the repository at this point in the history
Release 3.0.1
  • Loading branch information
nicosomb authored Dec 3, 2024
2 parents a523fe1 + b03acc8 commit 83222e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<module>
<name>ps_categorytree</name>
<displayName><![CDATA[Category tree links]]></displayName>
<version><![CDATA[3.0.0]]></version>
<version><![CDATA[3.0.1]]></version>
<description><![CDATA[Help navigation on your store, show your visitors current category and subcategories.]]></description>
<author><![CDATA[PrestaShop]]></author>
<tab><![CDATA[front_office_features]]></tab>
<is_configurable>1</is_configurable>
<need_instance>1</need_instance>
</module>
</module>
5 changes: 4 additions & 1 deletion ps_categorytree.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct()
{
$this->name = 'ps_categorytree';
$this->tab = 'front_office_features';
$this->version = '3.0.0';
$this->version = '3.0.1';
$this->author = 'PrestaShop';

$this->bootstrap = true;
Expand Down Expand Up @@ -139,6 +139,9 @@ private function getCategories($category): array

// Retrieve them using the built in method
$categories = Category::getNestedCategories($category->id, $this->context->language->id, true, $groups, true, $sqlFilter, $orderBy);
if (empty($categories)) {
return [];
}

// Get path to current category so we can use it for marking
$idsOfCategoriesInPath = $this->getIdsOfCategoriesInPathToCurrentCategory();
Expand Down

0 comments on commit 83222e4

Please sign in to comment.