Removed values in multi-value fields reappear

Created on 24 July 2023, 11 months ago
Updated 19 October 2023, 8 months ago

Problem/Motivation

Since 📌 Allow for deletion of a single value of a multiple value field Fixed we have the ability to remove single values from multi-value fields. If there is saved data in these fields it can reappear after the field value is removed. This can make it difficult to completely empty a field when using complex widgets with multiple form elements.

Steps to reproduce

  1. Install Drupal with standard profile
  2. Add a plain text field to the Article content type, setting the Allowed number of values to Unlimited.
  3. Create and save an Article node with two or more values for the plain text field added above
  4. Edit the Article node and press the Remove button for each value in the plain text field, including the empty row
  5. Notice the first value that was saved reappears
  6. Press add another item, notice the second value that was saved reappears

Proposed resolution

Ensure the field default value is used instead of the saved value.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

10.2

Component
Field 

Last updated about 10 hours ago

Created by

🇦🇺Australia mstrelan

Live updates comments and jobs are added and updated live.
  • Field UX

    Usability improvements related to the Field UI

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024