From 0bbf1069d06884f4c8d511d0d24119bfaa120f62 Mon Sep 17 00:00:00 2001 From: Tunbola Ogunwande Date: Wed, 17 Mar 2021 15:07:59 +0100 Subject: [PATCH] dev/core#2464: Rebuild Menu after clearing db cache --- CRM/Admin/Form/Setting.php | 1 + CRM/Admin/Form/Setting/Path.php | 2 -- CRM/Admin/Form/Setting/Url.php | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CRM/Admin/Form/Setting.php b/CRM/Admin/Form/Setting.php index 41585c8213..57e2c9fff5 100644 --- a/CRM/Admin/Form/Setting.php +++ b/CRM/Admin/Form/Setting.php @@ -117,6 +117,7 @@ class CRM_Admin_Form_Setting extends CRM_Core_Form { Civi::cache('session')->clear(); CRM_Utils_System::flushCache(); CRM_Core_Resources::singleton()->resetCacheCode(); + $this->rebuildMenu(); CRM_Core_Session::setStatus(" ", ts('Changes Saved'), "success"); } diff --git a/CRM/Admin/Form/Setting/Path.php b/CRM/Admin/Form/Setting/Path.php index d882f37fd9..e42071928b 100644 --- a/CRM/Admin/Form/Setting/Path.php +++ b/CRM/Admin/Form/Setting/Path.php @@ -58,8 +58,6 @@ class CRM_Admin_Form_Setting_Path extends CRM_Admin_Form_Setting { public function postProcess() { parent::postProcess(); - - parent::rebuildMenu(); } } diff --git a/CRM/Admin/Form/Setting/Url.php b/CRM/Admin/Form/Setting/Url.php index fa854247ea..a81c1e5313 100644 --- a/CRM/Admin/Form/Setting/Url.php +++ b/CRM/Admin/Form/Setting/Url.php @@ -81,8 +81,6 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting { $session->getStatus(TRUE); parent::postProcess(); - - parent::rebuildMenu(); } } -- 2.25.1