-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Conversation
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.
Can one of the admins verify this patch? |
(Standard links)
|
add to whitelist |
Expected "if (...) {\n"; found "if(...) {\n"
test this please |
(retesting - test fail seems unrelated) |
There was a problem hiding this 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; |
There was a problem hiding this comment.
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?
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.