-
-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CRM-15372 - Offline Registration w/ Credit Card Saves Processing Fee as Total Amount #4228
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -959,7 +959,7 @@ public function postProcess() { | |
// Eliminate contacts that have already been assigned to this event. | ||
$dupeCheck = new CRM_Event_BAO_Participant; | ||
$dupeCheck->contact_id = $dupeCheckContactId; | ||
$dupeCheck->event_id = $this->_eventId; | ||
$dupeCheck->event_id = $this->_eventId; | ||
$dupeCheck->find(TRUE); | ||
if(!empty($dupeCheck->id)) { | ||
$duplicateContacts++; | ||
|
@@ -1287,7 +1287,11 @@ public function postProcess() { | |
$this->_params['role_id'] | ||
); | ||
} | ||
$participants[] = CRM_Event_Form_Registration::addParticipant($this, $contactID); | ||
|
||
//CRM-15372 patch to fix fee amount replacing amount | ||
$participantParams = $this->_params; | ||
$participantParams['fee_amount'] = $this->_params["amount"]; | ||
$participants[] = CRM_Event_Form_Registration::addParticipant($participantParams, $contactID); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With this patch i get a fatal error on back-office credit card event registration in TEST mode using Auth.net. |
||
|
||
//add custom data for participant | ||
CRM_Core_BAO_CustomValueTable::postProcess($this->_params, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extraneous character on this line is throwing an error for me. Clearly an unintentional change due to some IDE setting.