fix CMS creation issue from profile
authorPradeep Nayak <pradpnayak@gmail.com>
Thu, 11 Jan 2024 11:25:04 +0000 (11:25 +0000)
committerPradeep Nayak <pradpnayak@gmail.com>
Thu, 11 Jan 2024 16:32:50 +0000 (16:32 +0000)
CRM/Profile/Form.php

index 32cea9291c32005cb44dd8d09c3005264054faeb..e9c8e4f80b45ea15765506d3734aeb18d63f3ba2 100644 (file)
@@ -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);