Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11786

Restore PayPal Express usability

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 4.2.6
    • Fix Version/s: 4.2.8
    • Component/s: CiviEvent
    • Labels:
      None

      Description

      IMHO, there is a bug in /administrator/components/com_civicrm/civicrm/CRM/Event/Form/Registration/Register.php

      Change this:
      Code: [Select]
      function preProcess() {
      parent::preProcess();

      $this->_ppType = CRM_Utils_Array::value('type', $_GET);
      $this->assign('ppType', FALSE);
      if ($this->_ppType)

      { $this->assign('ppType', TRUE); return CRM_Core_Payment_ProcessorForm::preProcess($this); }

      //get payPal express id and make it available to template
      $paymentProcessors = $this->get('paymentProcessors');
      $this->assign('payPalExpressId', 0);

      The form has to be preProcessed, but code must be allowed to continue. Removing the return before CRM_Core_Payment_ProcessorForm::preProcess($this); solved the problem here.

        Attachments

          Activity

            People

            • Assignee:
              deepak Deepak Srivastava
              Reporter:
              ylavoie Yves Lavoie
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified