Prepopulate Drupal 9 select

Created on 6 October 2021, over 3 years ago
Updated 27 February 2024, about 1 year ago

Problem/Motivation

The module works well simple field like textfield type in drupal 9, but it seems impossible to used with a select type widget Reference to an entity taxonomy.

Steps to reproduce

I have a content type article using a field "classement" which is Reference to an entity taxonomy named Classement.
I have tested all the possible syntax but it seems impossible to insert the value in url argument

?edit[field_classement][widget][0][target_id]=134
the element "field_classement" and "widget" arrays are well found but [0][target_id] not
When I debug the variable $element ($element = &$form[$request_variable]; line 110 in populate.php) on widget array, there's an object "values" but it's an empty array.
See in attachment file dump on my object main object field_classement

Proposed resolution

Can you propose me a solution ? Thanks

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

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

Merge Requests

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.71.5 2024