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

Cleanup core pseudoconstant buildOptions #17122

Merged
merged 2 commits into from
May 1, 2020

Conversation

colemanw
Copy link
Member

Overview

Cleans up variables being passed around buildOptions to prevent leakage.

Comments

There's been some confusion about the $params and $props variables, but they are not the same.

@civibot
Copy link

civibot bot commented Apr 21, 2020

(Standard links)

@civibot civibot bot added the master label Apr 21, 2020
@colemanw colemanw force-pushed the buildOptions branch 4 times, most recently from 7eb848a to 6710e97 Compare April 23, 2020 20:44
There has been some confusion about the $params vs $props variables, and some code was mistakenly using them interchangeably.
They are not the same, as CRM_Core_PseudoConstant::get expects sanitized input for $params, but CRM_*_DAO::buildOptions accepts raw user input as $props.
@eileenmcnaughton
Copy link
Contributor

I can't find any problems with this - merging

@eileenmcnaughton eileenmcnaughton merged commit d466dcb into civicrm:master May 1, 2020
@eileenmcnaughton eileenmcnaughton deleted the buildOptions branch May 1, 2020 02:30
@mlutfy
Copy link
Member

mlutfy commented Jun 15, 2020

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.

3 participants