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

Views+PCP: the URL field (to the PCP page) does not work

    Details

    • Type: Patch
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.8
    • Fix Version/s: 4.1.1
    • Component/s: None
    • Labels:
      None

      Description

      To reproduce: create a View with PCP pages. Add the fields ID and "CiviCRM Personal Campaign Pages: URL".

      The second field will cause a http 500 error, since the field tries to call CRM_Utils_System::url() directly, but the "require" was not done, so it cannot find the function.

      My patch is really simple: as for the CRM_Utils_System::href, which has a wrapper function called civicrm_views_href(), I created a wrapper called civicrm_views_url().

      Note: I tested on a 4.0.x install, but I had backported the lastest 4.1 'views' code into it.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              mlutfy Mathieu Lutfy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: