I'm getting the error below when searching items in relation widget.
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of Z:\home\erpal.local\www\includes\entity.inc).

That's because $entity_id is passed in array in entity_load_single function in theme.inc file.
There should be line:
$entity = entity_load_single($entity_type, $entity_id);
instedd of :
$entity = entity_load_single($entity_type, array($entity_id));

Here is my patch:

--- <html>theme.inc (<b>Oct 30, 2012 7:53:32 PM</b>)</html>
+++ <html><b>Current File</b></html>
@@ -35,7 +35,7 @@
     else {
       $entity_id = $result[$num]->{$view->query->base_field};
       $entity_type = relation_select_entity_get_type_from_view($view);
-      $entity = entity_load_single($entity_type, array($entity_id));
+      $entity = entity_load_single($entity_type, $entity_id);
       $bundle = relation_select_entity_get_bundle($entity_type, $entity);
     }
     $variables['row_entity'][$num] = array(

Comments

Jorrit’s picture

Status: Active » Reviewed & tested by the community

entity_load_single() is indeed expecting the second parameter to be just the id. It was actually my fault, see #1807196: Strict warning using reset() on non-variable. Sorry.

steveoliver’s picture

Status: Reviewed & tested by the community » Fixed

Thanks, a.milkovsky. Fixed in 2fe487f.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

fix text