See patch.

entity_reference with files is broken anyway in core (see #2388161: Use images as Entity Reference don't work), but this is a separate bug that can be fixed easily.

Comments

berdir’s picture

Status: Active » Needs review
StatusFileSize
new648 bytes
berdir’s picture

I don't know how to test this in a useful way, as mentioned, entity reference autocomplete with files in core doesn't work.

berdir’s picture

Component: entity_reference.module » file.module
jibran’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Quick fix

I don't know how to test this in a useful way, as mentioned, entity reference autocomplete with files in core doesn't work.

fair enough.

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed d3ccfcd and pushed to 8.0.x. Thanks!

  • alexpott committed d3ccfcd on 8.0.x
    Issue #2403669 by Berdir: FileSelection::buildEntityQuery() does not...

Status: Fixed » Closed (fixed)

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