Closed (works as designed)
Project:
Entity reference
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2012 at 16:15 UTC
Updated:
11 Mar 2019 at 18:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jherencia commentedComment #2
marcin.wosinek commentedCould you post exact steps to reproduce this error? I've tried using autocomplete within inline_entity_form and it worked without patch.
Comment #3
jherencia commentedSee the code and you'll find that in entityreference_autocomplete_callback $entity_id is set to '', not NULL as the comprobation expects. So even if in your installation of inline_entity_form works, it's a bug that probably will break something else.
Changing to needs review.
Comment #4
marcin.wosinek commentedI've investigated code, and issue #1625188: Autocomplete widget failed to return any nodes for reference introduced 'NULL' as argument for non entity_id. So it looks like default value fell out of sync. Here's patch.
Comment #5
marcin.wosinek commented@jherencia could you check #4?
Comment #6
jherencia commentedYes, it works too :).
Comment #7
bojanz commentedNote that Inline Entity Form doesn't need this patch since we went with using our own autocomplete callback after all.
Comment #8
jherencia commentedComment #9
rocketeerbkw commented#4 makes sense to me and should still be committed to entityreference even if inline_entity_form isn't broken anymore.
Comment #10
jherencia commented@rocketeerkbw
You are right, so RTBC.
Comment #11
liuba commentedHere is the patch for the latest recommended version - 7.x-1.0
Comment #13
stefan.r commentedreroll
Comment #14
stefan.r commentedComment #15
damienmckennaComment #16
minoroffense commentedI'm pretty sure this isn't relevant anymore. Plus the patch technically adds the word "NULL" and not the value
NULL