From: Pradeep Nayak Date: Thu, 11 Jan 2024 11:25:04 +0000 (+0000) Subject: fix CMS creation issue from profile X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=67d305159550351325a082ed7ebd247d4fd7870a;p=civicrm-core.git fix CMS creation issue from profile --- diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index 32cea9291c..e9c8e4f80b 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -886,10 +886,10 @@ class CRM_Profile_Form extends CRM_Core_Form { $this->setDefaultsValues(); $action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, NULL); + $this->assign('showCMS', FALSE); if ($this->_mode == self::MODE_CREATE || $this->_mode == self::MODE_EDIT) { CRM_Core_BAO_CMSUser::buildForm($this, $this->_gid, $emailPresent, $action); } - $this->assign('showCMS', FALSE); $this->assign('groupId', $this->_gid);