Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 298747

Entity autocreate checkbox for custom entites not working

$
0
0

Problem/Motivation

During implementation of a custom entity I debugged the entity reference field autocomplete functionality, as it was not working.
When referencing a new custom entity, the error
There are no entities matching "Entity label"
pops up.

Proposed resolution

Beside the right configuration (where different are possible). The code for selecting the bundle is not triggered at all.

Remaining tasks

There are a lot of tasks open about entity creation. Fe. a user reference field does not work.
The entity reference fields should store they're bundles in auto_create_bundle for "bundle-less" or in target_bundles for ones having multiple bundles.
This issue is thought as quick fix. The remaining task shall be done in subsequent (existing) issues, fe.
#2700411: "Create referenced entities if they don't already exist" option on entity reference field shouldn't be available for users

User interface changes

None.

API changes

None.

Data model changes

None.


Viewing all articles
Browse latest Browse all 298747

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>