Skip to content

Commit 1d8e881

Browse files
authored
Merge pull request #80 from Codencode/fix-38697-Schema-of-URLs-of-category-route-does-not-redirect-to-the-right-page
Fix: Schema of URLs of category route does not redirect to the right page
2 parents 173ea0d + 888269a commit 1d8e881

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ps_mainmenu.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public function install($delete_params = true)
100100
!$this->registerHook('actionObjectProductDeleteAfter') ||
101101
!$this->registerHook('actionObjectProductAddAfter') ||
102102
!$this->registerHook('actionCategoryUpdate') ||
103+
!$this->registerHook('actionMetaPageSave') ||
103104
!$this->registerHook('actionShopDataDuplication') ||
104105
!$this->registerHook('displayTop')) {
105106
return false;
@@ -990,6 +991,11 @@ public function hookActionCategoryUpdate($params)
990991
$this->clearMenuCache();
991992
}
992993

994+
public function hookActionMetaPageSave($params)
995+
{
996+
$this->clearMenuCache();
997+
}
998+
993999
protected function getCacheDirectory()
9941000
{
9951001
$dir = _PS_CACHE_DIR_ . 'ps_mainmenu';

upgrade/upgrade-2.3.5.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@
2424
function upgrade_module_2_3_5($module)
2525
{
2626
return Db::getInstance()->execute('INSERT IGNORE INTO `' . _DB_PREFIX_ . "hook` (`name`, `title`, `description`) VALUES
27-
('actionMainMenuModifier', 'Modify main menu view data', 'This hook allows to alter main menu data')");
27+
('actionMainMenuModifier', 'Modify main menu view data', 'This hook allows to alter main menu data')")
28+
&& $module->registerHook('actionMetaPageSave');
2829
}

0 commit comments

Comments
 (0)