CRM-16523 deprecate use of completetransacion in 'odd' way
authoreileenmcnaugton <eileen@fuzion.co.nz>
Tue, 4 Aug 2015 10:17:02 +0000 (22:17 +1200)
committereileenmcnaugton <eileen@fuzion.co.nz>
Tue, 4 Aug 2015 10:50:56 +0000 (22:50 +1200)
CRM/Contribute/BAO/Contribution.php
CRM/Core/Payment/BaseIPN.php
CRM/Event/Form/Task/Batch.php

index 6b2dbedca7da3e9b838433dc7e6a81a952411930..f59cbe4794f05857fe0f1caeb8cac5947a5bcd43 100644 (file)
@@ -4181,7 +4181,7 @@ LIMIT 1;";
         $contributionParams['receipt_date'] = $changeDate;
         $values['is_email_receipt'] = 1;
       }
-      if (empty($input['skipComponentSync'])) {
+      if (empty($input['IAmAHorribleNastyBeyondExcusableHackInTheCRMEventFORMTaskClassThatNeedsToBERemoved'])) {
         $participantStatuses = CRM_Core_PseudoConstant::get('CRM_Event_DAO_Participant', 'status_id', array(
           'labelColumn' => 'name',
           'flip' => 1,
index 3cd79301a254b94aa10fcca0426eeb61cc51e6a3..a31c1e232cc1ae21bcba33f04ea538e51d9a56d4 100644 (file)
@@ -244,7 +244,7 @@ class CRM_Core_Payment_BaseIPN {
       CRM_Contribute_BAO_ContributionRecur::copyCustomValues($objects['contributionRecur']->id, $contribution->id);
     }
 
-    if (empty($input['skipComponentSync'])) {
+    if (empty($input['IAmAHorribleNastyBeyondExcusableHackInTheCRMEventFORMTaskClassThatNeedsToBERemoved'])) {
       if (!empty($memberships)) {
         // if transaction is failed then set "Cancelled" as membership status
         $membershipStatuses = CRM_Core_PseudoConstant::get('CRM_Member_DAO_Membership', 'status_id', array(
@@ -339,7 +339,7 @@ class CRM_Core_Payment_BaseIPN {
       CRM_Contribute_BAO_ContributionRecur::copyCustomValues($objects['contributionRecur']->id, $contribution->id);
     }
 
-    if (empty($input['skipComponentSync'])) {
+    if (empty($input['IAmAHorribleNastyBeyondExcusableHackInTheCRMEventFORMTaskClassThatNeedsToBERemoved'])) {
       if (!empty($memberships)) {
         $membershipStatuses = CRM_Core_PseudoConstant::get('CRM_Member_DAO_Membership', 'status_id', array(
             'labelColumn' => 'name',
index cd248ba4a56e4cfaa2771b3bf21a7d383d480d9f..bb0c5900a54e634273de8093a0f12d61a9f18cc7 100644 (file)
@@ -383,7 +383,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task {
       'componentName' => 'Event',
       'contribution_id' => $contributionId,
       'contribution_status_id' => $contributionStatusId,
-      'skipComponentSync' => 1,
+      'IAmAHorribleNastyBeyondExcusableHackInTheCRMEventFORMTaskClassThatNeedsToBERemoved' => 1,
     );
 
     //change related contribution status.
@@ -463,7 +463,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task {
       'labelColumn' => 'name',
       'flip' => 1,
     ));
-    $input['skipComponentSync'] = CRM_Utils_Array::value('skipComponentSync', $params);
+    $input['IAmAHorribleNastyBeyondExcusableHackInTheCRMEventFORMTaskClassThatNeedsToBERemoved'] = CRM_Utils_Array::value('IAmAHorribleNastyBeyondExcusableHackInTheCRMEventFORMTaskClassThatNeedsToBERemoved', $params);
     if ($statusId == $contributionStatuses['Cancelled']) {
       $baseIPN->cancelled($objects, $transaction, $input);
       $transaction->commit();