diff --git commerce_addressbook.module commerce_addressbook.module index 63e73ae..ac5fa9f 100644 --- commerce_addressbook.module +++ commerce_addressbook.module @@ -28,6 +28,10 @@ function commerce_addressbook_list_field(&$form, $profiles) { $options['none'] = t('-- Select a saved address --'); foreach ($addresses as $key => $address) { + if ($address['name_line'] == NULL) { + $address['name_line'] = $address['first_name'] . ' ' . $address['last_name']; + } + $options[$key] = $address['name_line'] . ": " . $address['thoroughfare']; }