View with entityreference: make exposed filter autocomplete I have two content types A and B. B has an entity reference to A. 
When creating a view to list all nodes from type A, I want to use some exposed filters. One filter would be to give all nodes from type A that have a reference to a certain node of type B. 
The exposed filter I get is a textfield that needs a nid. I made it autocomplete (via form_alter), but now the value that gets saved is "node title (nid)". 

Anyone having the same problem, and knows how to fix it?

EDIT:
I found this patch for entity_reference, but it doesn't seem to work.
http://drupal.org/node/1492260
The patch I added to the initial question did the trick: http://drupal.org/node/1492260
The only thing you need to know is that you need to enable a checkbox on the fieldsettings of the field on you content type.