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

suppress user dashboard PCP creation link if resource is inactive

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.8
    • Fix Version/s: 4.6
    • Component/s: CiviContribute
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      to replicate:

      1. create event and enable PCPs
      2. select the option to use a contrib page for the PCP
      3. disable the contrib page selected
      4. login and visit the user dashboard

      in the PCP listing, there will be a row representing this PCP (asking if you want to create a page), but the title will be missing.

      this is because we:
      1. retrieve the list of all contrib pages (which default filters to active)
      2. retrieve all PCP blocks – with no respect to whether the target entity is active
      3. build the array to be passed to the template, at which point we insert the contrib page title

      because the contrib page is not in the list (from 1), the title is empty. what we should do is exclude the row altogether if the target entity is disabled.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: