Closed (won't fix)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.6-1
Component:
content.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2007 at 12:24 UTC
Updated:
11 Jan 2012 at 16:41 UTC
notice: I have patched widgetoptions.module as bug I reported at http://drupal.org/node/193440 , so it is possible that this issue is dependent on the patch I applied there. If so, my apologies and please ignore.
Drupal version: 5.3
$node_field at the occurrence of this bug is a single-dimension array,
array (
'keys' => 0,
),
I tried:
foreach ($node_field as $delta => $item) {
if(!is_array($delta)) $node_field[$delta] = array(); // added JC
$node_field[$delta]['view'] = content_format($field, $item, $formatter, $node);
}
and still had issues - no more php error, but the form processing didn't work (option remained checked when it was submitted as unchecked) & a display issue remained which accompanied this problem: the legend (i.e., human-readable item marking the options) wouldn't appear.
Comments
Comment #1
jmcoder commentedWorkaround -
Use multiple checkboxes (option "multiple" on so it doesn't appear as radio w/ N/A as an option). This seems to work fine for any who might have the same issue.
Comment #2
karens commentedThe D5 version is no longer being supported. Sorry.