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: params in CRM_Event_BAO_Event::buildCustomProfile() #12678

Merged
merged 2 commits into from
Aug 27, 2018

Conversation

kewljuice
Copy link
Contributor

Added check to suppress notice: Undefined index: params in CRM_Event_BAO_Event::buildCustomProfile() which comes after returning to site from an online payment provider.

Added check to suppress notice: Undefined index: params in CRM_Event_BAO_Event::buildCustomProfile() which comes after returning to site from an online payment provider.
@civicrm-builder
Copy link

Can one of the admins verify this patch?

@civibot
Copy link

civibot bot commented Aug 16, 2018

(Standard links)

@eileenmcnaughton
Copy link
Contributor

add to whitelist

Expected "if (...) {\n"; found "if(...) {\n"
@eileenmcnaughton
Copy link
Contributor

test this please

@eileenmcnaughton
Copy link
Contributor

(retesting - test fail seems unrelated)

Copy link
Contributor

@jitendrapurohit jitendrapurohit left a comment

Choose a reason for hiding this comment

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

Did a complete manual testing and it looks good. Though I wasn't able to replicate the exact notice error.

@@ -1826,7 +1826,10 @@ public static function buildCustomProfile(
$title = $groupTitles = array();
foreach ($additionalIDs as $pId => $cId) {
//get the params submitted by participant.
$participantParams = CRM_Utils_Array::value($pId, $values['params'], array());
$participantParams = NULL;
Copy link
Contributor

Choose a reason for hiding this comment

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

would be nice to initialize this as an array [] instead of NULL?

@eileenmcnaughton eileenmcnaughton merged commit bd5fd07 into civicrm:master Aug 27, 2018
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