If I attempt to set a textfield to true for "unique" but also set it to false for "mandatory" I would expect it to only validate values other than empty strings. However, it validates everything including an empty string.

End result: only 1 submission of this form can be performed with this "non-mandatory" field, all other submissions will state that

the value "" has already been submitted once for the [non-mandatory] field.

Comments

quicksketch’s picture

Nice, thanks. I'll look into it.

quicksketch’s picture

Version: 6.x-3.x-dev » 6.x-3.3
Status: Active » Fixed
StatusFileSize
new2.09 KB
new1.13 KB

These patches should prevent unique from matching empty strings. Thanks for the report.

quicksketch’s picture

StatusFileSize
new2.12 KB
new1.77 KB

Sorry wrong patches, here we are. These have been committed to CVS.

nicholas.alipaz’s picture

That's really quick work, good job and thanks for looking into this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.