File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff 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 ' ;
Original file line number Diff line number Diff line change 2424function 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}
You can’t perform that action at this time.
0 commit comments