Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.5
Component:
optionwidgets.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2007 at 06:23 UTC
Updated:
11 Jan 2012 at 16:28 UTC
Jump to comment: Most recent file
Comments
Comment #1
Jaza commentedOops - bad file paths in that patch. New patch attached.
Comment #2
Jaza commentedComment #3
z.stolar commentedConfirmed. The patch has resolved the problem in my case.
One issue remains: I had to have a format of:
key|label
in the options area (e.g., I couldn't have just 'label')
Comment #4
ray007 commentedI can confirm that this patches fixes my problems with on-off checkboxes not getting saved correctly too. Patch should be applied to mainline if it doesn't cause any other problems.
Comment #5
ray007 commentedSeems I was a bit too optimistic, I'm again having troubles with the on-off checkbox.
Will use 2 radio buttons until this issue is resolved.
Comment #6
dgtlmoon commentedI believe there are three issues at play here
- hook_widget for 'options_onoff' is not ensuring it only looks at the first set of key|value specified
Use the 'each' function to ensure we get the first (0) set of key|value's from the array not $vals[1]
- title field not wrapped in t() and not referencing the option value by key
- hook_widget for 'options_onoff' has nothing to check to see if it should be enabled by default or not
"$items['default keys'][0]" seems to always be set ?
this should be fixable, except for what to reference the default value as?
Comment #7
dgtlmoon commenteddropping this back to active as there are still issues with figuring out what the default value should be referenced from ?
Comment #8
Christefano-oldaccount commentedThis patch seems to be working for me with no side effects.I'll leave the status unchanged, though, since I was already using the labeling method that z.stolar mentions in #3 and didn't test other methods.
Comment #9
tuti commentedI'm using the latest version 1.6 (Aug 16) and I also have the problem with the on/off checkbox not working..? Has this patch not been implemented yet or do I have a new bug on my hands..?
Comment #10
jfall commentedHow did you fix this? I'm using 5.x-1.6 and checkboxes work fine on the edit-node form.
However, I'm using the editable fields module, and it has the "unchecked boxes don't get submitted with the form" problem... http://drupal.org/node/236898
I'm trying to figure out how to fix it and wonder is the fix made to CCK might help me?
thanks.
Comment #11
incaic commentedCheckboxes default value is incorrectly NULL in the database.
I thought KarenS fixed checkboxes here: http://drupal.org/node/224391
but noticed it was for version 6.x.
I just upgraded from 5.x-1.6 to the latest 5.x-1.7 and still have the same problem.
Is there a fix for this?
Comment #12
karens commentedThe D5 version is no longer being supported. Sorry.