Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent1892 committed Jan 10, 2017
1 parent b7f13cd commit b2eb0f1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ public function postProcess($formName, &$form) {
if (!empty($form->_submitValues['membership_id'])) {
$membership_id = $form->_submitValues['membership_id'];
}
$contactId = $form->getVar('_contactID');

// create soft contribution entry if contact ID and member contact are different
if(!empty($form->_submitValues['member_contact']) && ($form->_submitValues['member_contact'] != $contactId)) {
if(!empty($form->_submitValues['member_contact']) && !empty($contactId) && ($form->_submitValues['member_contact'] != $contactId)) {
$result = civicrm_api3('ContributionSoft', 'create', array(
'sequential' => 1,
'contribution_id' => $contribution_id,
Expand Down

0 comments on commit b2eb0f1

Please sign in to comment.