Skip to content
Snippets Groups Projects
Commit 4f0b7977 authored by Ryan Szrama's avatar Ryan Szrama
Browse files

Issue #1923326 follow-up by rszrama: fix a notice in the event that could not be loaded.

parent acf8e3f6
No related branches found
No related tags found
No related merge requests found
......@@ -88,9 +88,11 @@ function commerce_customer_profile_pane_checkout_form($form, &$form_state, $chec
$profile = NULL;
// If the associated order field has been set...
if ($field_name = variable_get('commerce_' . $checkout_pane['pane_id'] . '_field', '') &&
isset($wrapper->{$field_name})) {
$profile = $wrapper->{$field_name}->value();
if ($field_name = variable_get('commerce_' . $checkout_pane['pane_id'] . '_field', '')) {
watchdog('DEBUG', $field_name);
if (isset($wrapper->{$field_name})) {
$profile = $wrapper->{$field_name}->value();
}
}
else {
// Or try the association stored in the order's data array if no field is set.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment