From 7f1a247f578cac55e8e8256c34affc0f7f9b45b0 Mon Sep 17 00:00:00 2001 From: kurund Date: Tue, 9 Sep 2014 11:39:05 +0530 Subject: [PATCH] CRM-15265, fix set defaults in profile edit mode ---------------------------------------- * CRM-15265: Defaults not working in profile edit mode https://issues.civicrm.org/jira/browse/CRM-15265 --- CRM/Profile/Form.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index d0d229fa17..c8b0633ce1 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -799,6 +799,9 @@ class CRM_Profile_Form extends CRM_Core_Form { } } + //let's do set defaults for the profile + $this->setDefaultsValues(); + $action = CRM_Utils_Request::retrieve('action', 'String', $this, FALSE, NULL); if ($this->_mode == self::MODE_CREATE) { CRM_Core_BAO_CMSUser::buildForm($this, $this->_gid, $emailPresent, $action); -- 2.25.1