From c7fbf20850544f66f14531e5bce21a75e35f45a2 Mon Sep 17 00:00:00 2001 From: Tunbola Ogunwande Date: Thu, 18 Mar 2021 11:15:36 +0100 Subject: [PATCH] CPS-484: Rebuild Menu after clearing db cache for settings page PR: https://github.com/civicrm/civicrm-core/pull/19823 --- 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 41585c821389..57e2c9fff52f 100644 --- a/CRM/Admin/Form/Setting.php +++ b/CRM/Admin/Form/Setting.php @@ -117,6 +117,7 @@ public function commonProcess(&$params) { 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 d882f37fd9c8..e42071928bd8 100644 --- a/CRM/Admin/Form/Setting/Path.php +++ b/CRM/Admin/Form/Setting/Path.php @@ -58,8 +58,6 @@ public function buildQuickForm() { public function postProcess() { parent::postProcess(); - - parent::rebuildMenu(); } } diff --git a/CRM/Admin/Form/Setting/Url.php b/CRM/Admin/Form/Setting/Url.php index fa854247eaf4..a81c1e5313e0 100644 --- a/CRM/Admin/Form/Setting/Url.php +++ b/CRM/Admin/Form/Setting/Url.php @@ -81,8 +81,6 @@ public function postProcess() { $session->getStatus(TRUE); parent::postProcess(); - - parent::rebuildMenu(); } }