Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix theoretical regression #16567

Merged
merged 1 commit into from
Feb 17, 2020
Merged

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Fixes an instance where an invalid function is called - in a place I believe to be unreachable

Before

self::getDefaultRoleID() called

After

CRM_Event_BAO_Participant::getDefaultRoleID()

Technical Details

This PR 44237a2
(merged to 5.23) calls self::::getDefaultRoleID() in a way that was always flawed (because it was private) but definitely would
not work now. I think it is never reached but better to put this fix into 5.23 & maybe reemove the line in master
later since it assumes participant_status_id is optional - which is not true of the backoffice form

Comments

This PR civicrm@44237a2
(merged to 5.23) calls self::::getDefaultRoleID() in a way that was always flawed but definitely woudl
not work now. I think it is never reached but better to put this fix into 5.23 & maybe reemove the line in master
later since it assumes participant_status_id is optional - which is not true of the backoffice form
@civibot
Copy link

civibot bot commented Feb 17, 2020

(Standard links)

@civibot civibot bot added the 5.23 label Feb 17, 2020
@seamuslee001
Copy link
Contributor

Change looks fine to me merging

@seamuslee001 seamuslee001 merged commit b6ae21d into civicrm:5.23 Feb 17, 2020
@seamuslee001 seamuslee001 deleted the parti_form branch February 17, 2020 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants