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

Divide & conquer, initSet no longer shared as much code is not #25184

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Divide & conquer, initSet no longer shared as much code is not

Before

BAO_PriceSet::initSet called by 2 functions, much of the code is specific to the different calling functions

After

Function copied to it's callers & deprecated

Technical Details

Follow up tidy up can strip out the code that is not relevant to each place

Comments

@civibot
Copy link

civibot bot commented Dec 15, 2022

(Standard links)

@civibot civibot bot added the master label Dec 15, 2022
@eileenmcnaughton
Copy link
Contributor Author

@demeritcowboy are you able to merge this - it's just copying the function to 2 places - but I can rip it mostly out of one - I'm trying to work through the assumption that priceSet is ALWAYS set unless it is not monetary - which stacks up in my UI testing - & from there to figure out what useForMember actually means & why it seems so weird - towards #25181 & finally getting rid of hard fails due to isset with smarty escaping

@demeritcowboy demeritcowboy merged commit 21b79c2 into civicrm:master Dec 16, 2022
@eileenmcnaughton eileenmcnaughton deleted the build_divide branch December 16, 2022 23:12
@eileenmcnaughton
Copy link
Contributor Author

Thanks @demeritcowboy

eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Dec 16, 2022
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Dec 16, 2022
Per civicrm#25194
But the other function split out from

civicrm#25184
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Dec 16, 2022
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Jan 20, 2023
Per civicrm#25194
But the other function split out from

civicrm#25184
eileenmcnaughton added a commit to eileenmcnaughton/civicrm-core that referenced this pull request Feb 6, 2023
Per civicrm#25194
But the other function split out from

civicrm#25184
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