fix CRM-11915
authorDonald A. Lobo <lobo@civicrm.org>
Tue, 5 Mar 2013 21:58:55 +0000 (13:58 -0800)
committerDonald A. Lobo <lobo@civicrm.org>
Tue, 5 Mar 2013 21:58:55 +0000 (13:58 -0800)
CRM/Event/Form/Registration/Register.php

index aa1dff81b849d665ba431e2d84f1d668b6f2c876..50d601f0036485791287ff569850b1895b8d48da 100644 (file)
@@ -220,6 +220,11 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
         }
       }
     }
+
+    if (!empty($fields)) {
+      CRM_Core_BAO_UFGroup::setProfileDefaults($contactID, $fields, $this->_defaults);
+    }
+
     //if event is monetary and pay later is enabled and payment
     //processor is not available then freeze the pay later checkbox with
     //default check