Selection is sometimes lost after submission if autocreate is turned off

Created on 11 March 2023, almost 2 years ago
Updated 16 April 2023, over 1 year ago

Problem/Motivation

Sometimes after selecting a referenced entity and saving the entity form, the selection is gone after the form reloads which means it didn't save. This only happens if autocreate is turned off for the field.

Steps to reproduce

  1. Type the exact name of the entity and press enter before the dropdown with results appears.
  2. Save the form. Even though the input exactly matched the title of an existing entity, it isn't selected.

Proposed resolution

Fix the logic in TagifyEntityReferenceAutocompleteWidget::massageFormValues to also select existing entities if autocreate is turned off.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Comments & Activities

Production build 0.71.5 2024