Uploaded image for project: 'CiviVolunteer'
  1. CiviVolunteer
  2. VOL-306

CIVICRM-273 Volunteer Roster does not show admin-only opportunities in backend

    Details

    • Type: Bug
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Versioning Impact:
      Minor (add functionality in backwards-compatible manner)
    • Documentation Required?:
      None
    • Verified?:
      No

      Description

      When, as an admin, you go to view the Volunteer roster on a project, any non-public roles are not shown with the roster:

      volunteer_roster_no_roles.png

      This is due to the _get_needs function in CRM/Volunteer/BAO/Project.php using the VolunteerNeed.get api with the visibility_id set to public.

      For the site we found this on, we've worked around this issue by patching the call in question to allow either public or admin visibility, but I'm unsure of where else this function is exposed.

      Proposed solution is to provide an optional parameter to the _get_needs function that defaults to filtering by public roles only so that it can be controlled from closer to the view.

      Agileware reference CIVICRM-273

        Attachments

          Activity

            People

            • Assignee:
              pittstains Frank J. Gómez
              Reporter:
              agileware Agileware
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: