Hello.

My Drupal version is 8.1.7.

Steps I did :
1) In the back-office, I click on "Structure", then I click on "Types of contents" (just upon the text "Create and manage fields, forms, and display settings for your content.") to create a new type of content named "Page". The type of content "Page" has a field named "Documentation", the field type is "Entity Reference" : the reference type of the field "Documentation" is set like this :
- reference method = Views : filtered by a reference entity vue
- view used to select the entities = autocompletion_files – Entity Reference

2) I add a new content (named "MyContent") which content type is "Page".

3) In the back-office, I click on "Structure", then I click on "Types of contents" (just upon the text "Create and manage fields, forms, and display settings for your content.") to create a new type of content named "Media". The type of content "Media" has only one field : a file type field.

4) Then I create a new content which content type is "Media". This new content has a title ("MyMedia") and a file ("myfile.pdf").

5) I modify the content MyMedia like this : I delete the file myfile.pdf and I upload the file myfile.pdf (the file has the same name as step 2 but this is not the same file as step 2, it's a modified/updated version file)

Problem :
I modify the content "MyContent". I click on the field "Documentation" and begin to write "myfile" in the input : the autocompletion shows 2 entries with myfile.pdf, on entry with the old file setted in "MyMedia" and another entry with the file setted in "MyMedia". The autocompletion should show only one entry: the entry with the new file.

Comments

fugarte created an issue. See original summary.

amateescu’s picture

Category: Bug report » Support request
Status: Active » Fixed

I'm sorry but the issue summary is very hard to follow. I already read it three times and I'm still not sure I understood what the problem is, but I think that you have to change the view used in step 1 (autocompletion_files) to filter out a content type.

Status: Fixed » Closed (fixed)

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