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

Fix undefined index warning in SavedSearch api #16876

Merged
merged 1 commit into from
Mar 24, 2020

Conversation

colemanw
Copy link
Member

Overview

This fixes an undefined index warning caused by #16666

@civibot
Copy link

civibot bot commented Mar 21, 2020

(Standard links)

@civibot civibot bot added the 5.24 label Mar 21, 2020
@seamuslee001
Copy link
Contributor

@colemanw test fail relates

foreach ($result['values'] as $key => $value) {
$result['values'][$key]['form_values'] = \CRM_Utils_String::unserialize($value['form_values']);
if (isset($value['form_values'])) {
$result['values'][$key]['form_values'] = CRM_Utils_String::unserialize($value['form_values']);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@colemanw is there a reason why you have dropped the namespacing? \

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well our convention is to omit it when a non-namespaced function like this calls a non-namespaced class. So, just to be consistent with how we do it elsewhere.

@eileenmcnaughton eileenmcnaughton merged commit 72f7290 into civicrm:5.24 Mar 24, 2020
@eileenmcnaughton eileenmcnaughton deleted the ssFix branch March 24, 2020 00:49
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