Closed (fixed)
Project:
Webform
Version:
6.x-3.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2010 at 02:05 UTC
Updated:
3 Nov 2010 at 04:00 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | webform_unique_empty6.patch | 1.77 KB | quicksketch |
| #3 | webform_unique_empty7.patch | 2.12 KB | quicksketch |
| #2 | webform_exclude_groups.patch | 1.13 KB | quicksketch |
| #2 | webform_exclude_groups7.patch | 2.09 KB | quicksketch |
Comments
Comment #1
quicksketchNice, thanks. I'll look into it.
Comment #2
quicksketchThese patches should prevent unique from matching empty strings. Thanks for the report.
Comment #3
quicksketchSorry wrong patches, here we are. These have been committed to CVS.
Comment #4
nicholas.alipaz commentedThat's really quick work, good job and thanks for looking into this.