Closed (fixed)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Sep 2015 at 07:50 UTC
Updated:
29 Sep 2015 at 21:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hansrossel commentedComment #3
hansrossel commentedComment #4
hansrossel commentedComment #5
hansrossel commentedMust be something wrong in this part of /webform/components/select.inc at line 819 in the case the key is 0 and there is only 1 item in multiple.
Comment #6
danchadwick commentedRight you are. Reproduced. The problem is with a key of '0', such as
An completed but empty component has an empty string stored as its value. This indicates that that, when presented again, the default should not be made again. The problem is that the empty string is being confused by PHP with the 0 key.
Committed to 7.x-4.x and 8.x.
Comment #9
hansrossel commentedThanks a lot, I tested it and it indeed solves the problem.