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:
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