CRM-20697 - Add checksum to pay now link
authorJitendra Purohit <jitendra@fuzion.co.nz>
Tue, 23 Jan 2018 10:39:53 +0000 (16:09 +0530)
committerJitendra Purohit <jitendra@fuzion.co.nz>
Wed, 28 Mar 2018 04:21:16 +0000 (09:51 +0530)
CRM/Contribute/Form/Contribution/Main.php

index f7b04a1ac890fc049c184ea0b5459f2c91954cee..d1a73cea3651496ef00bd1035bd5aaf34b06fae5 100644 (file)
@@ -1300,6 +1300,9 @@ class CRM_Contribute_Form_Contribution_Main extends CRM_Contribute_Form_Contribu
     if (empty($this->_ccid)) {
       return;
     }
+    if (!$this->getContactID()) {
+      CRM_Core_Error::statusBounce(ts("Returning since there is no contact attached to this contribution id."));
+    }
 
     $payment = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_ccid, 'contribution');
     //bounce if the contribution is not pending.