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

Online contribution pages should utilize the existing buildPCP method to add PCP fields

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)

      Description

      Event registration forms use a share method to add PCP form fields (CRM_PCP_BAO_PCP::buildPcp). See CRM_Event_Form_Registration_Register::buildQuickForm. However this code is pretty much replicated in CRM_Contribute_Form_Contribution_Main::buildQuickForm. Instead that class should use the shared method. Please review for any adjustments needed to the shared method to handle both forms and make sure the logic for assigning text to pcpSupporterText smarty variable handles both conditions (link_text present / link_text empty).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kurund Kurund Jalmi
                Reporter:
                dgg David Greenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: