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 input params on OptionValue::addOptionValue #12414

Merged
merged 1 commit into from
Jul 5, 2018

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Minor code simplification

Before

no change

After

code slightly simplified

Technical Details

The addOptionValue function is one we should probably deprecate/ remove but towards that we should start to remove it.
This commit removes some complexity by passing option_group_name rather than
groupParams - which is a more accurate reflection of usage and removes ambiguity around the passing
by reference

Comments

@mattwire can you review this one for me. I'm exploring extending the use of entity forms - but in this case I found something confusing so this is a preliminary clean up

The addOptionValue function is one we should probably deprecate/ remove but towards that we should
start to remove it. This commit removes some complexity by passing option_group_name rather than
groupParams - which is a more accurate reflection of usage and removes ambiguity around the passing
by reference
@civibot
Copy link

civibot bot commented Jul 4, 2018

(Standard links)

@eileenmcnaughton
Copy link
Contributor Author

test this please

@mattwire
Copy link
Contributor

mattwire commented Jul 5, 2018

@eileenmcnaughton This is ok to merge - @monishdeb @seamuslee001

@seamuslee001
Copy link
Contributor

Merging as per Matt's testing

@seamuslee001 seamuslee001 merged commit 50bd5b5 into civicrm:master Jul 5, 2018
@eileenmcnaughton eileenmcnaughton deleted the option_value branch July 5, 2018 22:51
@eileenmcnaughton
Copy link
Contributor Author

thanks @mattwire

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.

4 participants