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

Simplify CRM_Core_BAO_Location::createLocBlock by moving eventLocation specific handling back to the class #18578

Merged
merged 2 commits into from
Sep 24, 2020

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Sep 24, 2020

Overview

Simplify CRM_Core_BAO_Location::createLocBlock by moving eventLocation specific handling back to the class - note how the 3rd parameter is only non-null in one place...

Screen Shot 2020-09-24 at 12 32 08 PM

Before

Handling in CRM_Core_BAO_Location::createLocBloc that pertains only to CRM_Event_Form_ManageEvent_Location

After

Handling moved to CRM_Event_Form_ManageEvent_Location

Technical Details

On grepping universe we find entity is only passed into
CRM_Core_BAO_Location::createLocBlock from this one place in the code - ergo we can
do the handling for it on that class & not in the shared code

Incorporates #18577

Comments

Test cover added in preparation for this to CRM_Event_Form_ManageEvent_LocationTest so adding has-test

@civibot civibot bot added the master label Sep 24, 2020
@civibot
Copy link

civibot bot commented Sep 24, 2020

(Standard links)

…n specific handling back to the class

On grepping universe we find entity is only passed into
CRM_Core_BAO_Location::createLocBlock from this one place in the code - ergo we can
do the handling for it on that class & not in the shared code

Test cover added in preparation for this to CRM_Event_Form_ManageEvent_LocationTest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants