diff --git a/commerce_addressbook.module b/commerce_addressbook.module index d4f4324..3744d60 100644 --- a/commerce_addressbook.module +++ b/commerce_addressbook.module @@ -206,7 +206,7 @@ function commerce_addressbook_entity_view($entity, $type, $view_mode, $langcode) if (empty($record) || $record->uid != $user->uid || $record->type != $entity->type) { $query = db_select('commerce_addressbook_defaults', 'cad') ->fields('cad') - ->condition('uid', $user->uid) + ->condition('uid', $entity->uid) ->condition('type', $entity->type) ->execute(); $record = $query->fetchObject();