Have a look at
http://cgit.drupalcode.org/drupal/commit/?h=7.x&id=be00a1ced4104d84df2f3...
This commit to Drupal core changed the API for autocomplete. Now you need an additional key #autocomplete_input.
This can be achieved by adding form_process_autocomplete() in #process, just like for 'textfield' in system_element_info().
Maybe you could check function_exists(), so it does not break with older Drupal core versions.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | entityreference_autocomplete-7.x-1.x-2561431-4.patch | 956 bytes | donquixote |
| #2 | entityreference_autocomplete-7.x-1.x-2561431-1.patch | 839 bytes | donquixote |
Comments
Comment #2
donquixote commentedComment #3
donquixote commentedComment #4
donquixote commentedDifferent approach with function_exists(), so it does not break in prior versions of Drupal core.
Comment #5
shashikant_chauhan commentedHi,
I am also facing problem with Entity Reference Autocomplete & drupal 7.39.
I tried the patch 2, and its working fine.
Comment #7
slv_ commentedThanks for the patches donquixote.
This was already reported in #2554553: Autocomplete broken in Drupal 7.39. I'll solve it in this issue as the solution with the function_exists check is not in the other one. I didn't apply last patch, but a combination of the patches in #2 and #4, as I prefer to have the #process function in the element_info() declaration, rather than called dynamically.
Since that function is in form.inc, which is called whenever Drupal gets fully bootstrapped, there shouldn't be a problem with that, and just flushing all caches should get it added to the #process array too.
Fixed in http://drupalcode.org/project/entityreference_autocomplete.git/commit/57.... Will go into next stable release \o/.
Comment #8
slv_ commentedComment #10
blanca.esqueda commented