corrected syntax
authorSunil Pawar <sunil@cividesk.com>
Mon, 1 Jan 2018 18:40:48 +0000 (00:10 +0530)
committerSunil Pawar <sunil@cividesk.com>
Mon, 1 Jan 2018 18:40:48 +0000 (00:10 +0530)
CRM/Core/Payment/PayPalImpl.php

index b6f255db8609cafb1f701c4f223102e9508a0919..23ef6f1a2423de796ecdf2cffc4a14c7e4771373 100644 (file)
@@ -139,13 +139,15 @@ class CRM_Core_Payment_PayPalImpl extends CRM_Core_Payment {
   protected function addPaypalExpressCode(&$form) {
     // @todo use $this->isBackOffice() instead, test.
     if (empty($form->isBackOffice)) {
-      /*
-      if payment method selected using ajax call then form object is of 'CRM_Financial_Form_Payment',
-      instead of 'CRM_Contribute_Form_Contribution_Main' so it generate wrong button name
-      and then clicking on express button it redirect to confirm screen rather than PayPal Express form
-      */
+
+      /**
+       * if payment method selected using ajax call then form object is of 'CRM_Financial_Form_Payment',
+       * instead of 'CRM_Contribute_Form_Contribution_Main' so it generate wrong button name
+       * and then clicking on express button it redirect to confirm screen rather than PayPal Express form
+       */
+
       if ('CRM_Financial_Form_Payment' == get_class($form) && $form->_formName) {
-        $form->_expressButtonName = '_qf_'.$form->_formName.'_upload_express';
+        $form->_expressButtonName = '_qf_' . $form->_formName . '_upload_express';
       }
       else {
         $form->_expressButtonName = $form->getButtonName('upload', 'express');