Using this module with the following patches applied -

Seeing the following error -

Notice: Undefined index: #field_name in commerce_addressbook_profile_field_form_alter() (line 562 of /var/aegir/platforms/dev-20140725-63054be/sites/all/modules/commerce_addressbook/commerce_addressbook.module).

Don't believe there's any form_alter malarkey which should be removing the #field_name from that field. Just tagging this issue for now so I can follow up on it.

Comments

xurizaemon’s picture

Issue summary: View changes
sin’s picture

I'm stumbled upon this issue using #2112131: New user doesn't get default address assigned patch. I found #field_name is in place if you edit or add order via admin form but it is undefined during normal checkout. Now using this workaround:


  // Check if we are in admin order form or in the cart.
  if ($form['#form_id'] == 'commerce_order_ui_order_form') {
    $profile_field_name = $form[$profile_element]['#field_name'];
  }
  else {
    $profile_field_name = variable_get('commerce_' . $profile_element . '_field', '');
  }

mglaman’s picture

Status: Active » Closed (won't fix)
Related issues: +#1417838: Give Admin users the possibility to choose any profile

Please don't open an issue on a bug caused by a patch, but update it in that issue #1417838: Give Admin users the possibility to choose any profile.