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:16 UTC
Updated:
14 Feb 2011 at 15:05 UTC
The returned "default_value" from Options Element should be either a string or an array depending on the state of of the "multiple" checkbox. It looks like the default value returned is actually based on the *original* #multiple property, not on the user-specified value of the multiple checkbox. This patch makes it so that the returned "default_value" is based on the checkbox, rather than on the original state of the element.
| Comment | File | Size | Author |
|---|---|---|---|
| options_element_multiple_value.patch | 1.26 KB | quicksketch |
Comments
Comment #1
quicksketchCommitted.
Comment #3
David_Rothstein commentedRelated issue: #1009508: Elements with the "multiple" but not "multiple_toggle" property (e.g. checkboxes) don't have their default values saved
I think it turns out there are some times you want it based on the original #multiple property, and some times you don't.