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

Add utils for finding nested array items #12187

Merged
merged 1 commit into from
May 23, 2018

Conversation

colemanw
Copy link
Member

@colemanw colemanw commented May 23, 2018

Overview

Just adding a utility function

Before

no change

After

no change

Comments

This is a reviewers cut of #12183

@eileenmcnaughton
Copy link
Contributor

Very much more elegant!

@monishdeb
Copy link
Member

Accurate patch + UT. Happy with the patch.

@seamuslee001
Copy link
Contributor

merging as per the tag

@seamuslee001 seamuslee001 merged commit b849bd9 into civicrm:master May 23, 2018
@eileenmcnaughton eileenmcnaughton deleted the recursive branch May 23, 2018 21:32
vinuvarshith added a commit to vinuvarshith/civicrm-core that referenced this pull request Jul 9, 2018
@totten
Copy link
Member

totten commented Jul 11, 2018

JFYI, we now have two versions of this functionality -- CRM_Utils_Array::pathGet() and CRM_Utils_Array::pathSet() have been around since 2015 (4.6.7).

Not really keen to push through a cleanup/reconciliation in this context... maybe we can do something for 5.5...

@colemanw
Copy link
Member Author

Aww, that's a shame we all missed that. I'll do a followup PR for cleanup...

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.

6 participants