Unique on number fields migrated as "false" makes unique required

Created on 16 December 2021, almost 3 years ago
Updated 13 April 2024, 8 months ago

When number fields migrate, $extra['unique'] gets set to the string "true" or the string "false".

Webform evaluates either the string "true" or "false" as a positive, so even though my yml generated by the migration says '#unique': false, when I try to use the form the field must be unique.

A way to fix this is to set unique to NULL rather than the string "false" for a non-unique field.

Tested with Webform 6.1.2 on Drupal 9.3.0.

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇨🇦Canada floydm

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