Closed (fixed)
Project:
Options Element
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2010 at 02:28 UTC
Updated:
19 Sep 2010 at 14:50 UTC
To reproduce through Webform module:
- Enable Webform and Options Element
- Create a new webform node
- Add a new "Select options" component
- Add 3 options (one,two,three), without custom keys, and set the second one to the default.
- Make sure "Multiple" is not checked
- The default value saved for the component is "two", instead of the actual key "1".
- Edit the component or view the form, you'll see that no default is set, since "two" is not a valid key.
The solution is just to run the default value through _form_options_search(), like we already do for multiple values.
| Comment | File | Size | Author |
|---|---|---|---|
| options_element_new_mixed_default.patch | 587 bytes | quicksketch |
Comments
Comment #1
quicksketchCommitted.
Comment #2
tobiasbhttp://drupal.org/cvs?commit=416494
Comment #3
quicksketchOh dear! I must have accidentally had a Webform file selected when I committed from my IDE. Thanks tobiasb!