Add test coverage for file entity reference selection plugin

Created on 10 October 2014, over 9 years ago
Updated 27 January 2023, over 1 year ago

Problem/Motivation

Creating a node with a entity reference field refer to a file got an error (on js console):
Fatal error: Call to a member function range() on a non-object in /core/modules/entity_reference/src/Plugin/entity_reference/selection/SelectionBase.php on line 184

Steps To Reproduce

Create a content type "File", with a file field "File"

Add some contents to "File"

Add reference field "File Reference" to "Article", then set "Type of item to reference" to "File" ("File" entity type, not "Content" entity type with bundle "File")

Open javascript console, then add new "Article"

Expected: autocomple work, with a list of file including sample.jpg
Actual: autocomple does not work, with an error:

πŸ“Œ Task
Status

Needs work

Version

10.1 ✨

Component
File moduleΒ  β†’

Last updated 3 days ago

Created by

πŸ‡»πŸ‡³Vietnam tien.xuan.vo

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024