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

Align 4.6 behaviour with 4.7 for Payment processor buildForm method

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.8
    • Fix Version/s: 4.6.10
    • Component/s: None
    • Labels:
    • Documentation Required?:
      Developer Doc
    • Funding Source:
      Contributed Code

      Description

      In 4.7 the recommended method for payment processors to add js & other resources to a page is by implementing the buildForm hook. This method is also implemented in 4.6 but there is a minor difference. In 4.7 further form building will not occur if the method is implemented AND returns TRUE. In 4.6 it will not occur if the method is implemented.

      I actually haven't found a case where you would want to return TRUE - but perhaps iFrames would make sense for that.

      In any case, extension writers need to be able to add this in 4.6 in the same way they will in future versions to enable consistent development

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: