Deleting the first value in a required, multivalue field fails validation

Created on 7 November 2006, about 18 years ago
Updated 25 February 2023, almost 2 years ago

Steps to reproduce :
(1 to 5 are just there to outline the 'expected' behaviour)
1 - Define a text field - mark it multiple / NOT required
2 - Create a node with 3 values 'foo', 'bar' and 'baz' for the field
3 - Submit
4 - Edit the node, empty the first value 'foo'
5 - Submit : everything OK, the field has the values 'bar' and 'baz', and if you edit the node, you get 'bar' and 'baz' in the first and second textfields (values have shifted)
6 - Now set your field to REQUIRED
7 - Edit the node, empty the first value 'bar'
8 - Submit : you get a 'field is required' error on the first (empty) textfield, yet the field itself should not be considered empty, since you have the 'baz' value in the second textfield

This is content.module stuff - you get the behaviour with number, or noderef with autocomplete fields.

πŸ› Bug report
Status

Closed: duplicate

Version

8.9 ⚰️

Component
FieldΒ  β†’

Last updated 2 days ago

Created by

πŸ‡«πŸ‡·France yched

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