CRM-16808 paypal refactoring, fix enotice on generating url
[civicrm-core.git] / CRM / Event / Form / Registration / Register.php
index 8100e4e7eeb5f65e588a668d92555aa250e015fa..f4a7c8baa266943c4c33aeb430c2462f7fa8fc31 100644 (file)
@@ -1170,6 +1170,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration {
           );
           $params['invoiceID'] = $invoiceID;
 
+          $params['component'] = 'event';
           $token = $payment->doPreApproval($params);
           if (is_a($token, 'CRM_Core_Error')) {
             CRM_Core_Error::displaySessionError($token);