Closed (fixed)
Project:
Webform
Version:
7.x-3.11
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jul 2010 at 11:56 UTC
Updated:
24 May 2011 at 05:17 UTC
Jump to comment: Most recent file
Comments
Comment #1
tomsm commentedsorry, selected wrong version
Comment #2
tomsm commentedComment #3
quicksketchThanks for the great bug report tomsm. I'll look into this when I get the chance.
Comment #4
quicksketchI found this applies not only to anonymous users, but also to authenticated users when they haven't filled out a profile value. The fix is really easy though, since we already have the parsed default value available as a variable, we just need to check it instead of the raw default.
Committed the attached patch. Please let me know if you encounter any other troubles with the default "select..." option.
Comment #5
tomsm commentedI have tested 6.x-3.1 and the issue is fixed. Thanks!
Comment #6
tomsm commentedI have another problem that might be related to this issue:
http://drupal.org/node/885454 might be a duplicate of this issue...?
Webform always fills in the first item of a select list as default value.
When I remove %profile[key] as default value for the webform select list, the first item is still used as default value.
This should be "Select..." as it is for anonymous users.
Comment #7
tomsm commentedComment #8
quicksketchThere are several different issues, regarding the first item being selected if the first item has a key of zero. Let's consolidate this new problem over in #885454: First item of select lists selected as default if no default is set.
Comment #10
sibert commentedIn previous version of Webform this worked as above quoted. Updating to 7.x-3.11 this behaviour has changed to always select the first line in a select field, which is really confusing for the user. I have search this subforum for restore the old behaviour, but I have not found anything.
Thanks in advance for any clue to fix this!
Comment #11
quicksketchI agree, but let's reconvene in the new issue for fixing this in #1078750: Options for "- Select -" or "- None -" not automatically added.