CRM-15265, fix set defaults in profile edit mode
authorkurund <kurund@civicrm.org>
Tue, 9 Sep 2014 06:09:05 +0000 (11:39 +0530)
committerkurund <kurund@civicrm.org>
Tue, 9 Sep 2014 06:09:05 +0000 (11:39 +0530)
----------------------------------------
* CRM-15265: Defaults not working in profile edit mode
  https://issues.civicrm.org/jira/browse/CRM-15265

CRM/Profile/Form.php

index d0d229fa17e6fac05ae9323617e83e648ce420a0..c8b0633ce1ac76bde34e1a66cc477e662ed6d909 100644 (file)
@@ -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);