The validateUnique() and validateUniqueMultiple() functions don't evaluate #unique = false correctly

Created on 28 August 2025, 25 days ago

Problem/Motivation

If you have a form element that is coded as #unique: false, it's treated as though it's #unique: true.

Steps to reproduce

I wasn't able to get the admin UI to create a #unique: false setting on an element, but it can be done on the Source page. In my case, I think I ended up with some of these as a result of migrating forms with Webform Migrate β†’ .

Proposed resolution

The #unique key is currently being checked with isset(). It should be checked with empty() instead.

Remaining tasks

Merge request coming.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Active

Version

6.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States zengenuity

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024