$form->controller = new CRM_Event_Controller_Registration();
$form->_params = $params['params'];
// This happens in buildQuickForm so emulate here.
- $form->_amount = $form->_totalAmount = CRM_Utils_Rule::cleanMoney(CRM_Utils_Array::value('totalAmount', $params));
+ $form->_amount = $form->_totalAmount = $params['totalAmount'] ?? 0;
$form->set('params', $params['params']);
$form->_values['custom_pre_id'] = $params['custom_pre_id'] ?? NULL;
$form->_values['custom_post_id'] = $params['custom_post_id'] ?? NULL;
'contributeMode' => 'direct',
'registerByID' => $individualID,
'paymentProcessorObj' => CRM_Financial_BAO_PaymentProcessor::getPayment($paymentProcessorID),
- 'totalAmount' => $this->formatMoneyInput(8000.67),
+ 'totalAmount' => 8000.67,
'params' => [
[
'qfKey' => 'e6eb2903eae63d4c5c6cc70bfdda8741_2801',