Closed (fixed)
Project:
Drupal core
Component:
node.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2005 at 08:13 UTC
Updated:
5 Oct 2005 at 22:00 UTC
When you deselect all node options (published, in moderation queue etc.), an error occurs when you next edit this node.
Reason: includes/common.inc:form_checkboxes() adds a hidden field with the value "0" that is overwritten when at least one checkbox is checked. Usually the value of the $edit variable is an array, in this case it is "0". A possible fix is to convert "0" to array() at the appropriate code points.
| Comment | File | Size | Author |
|---|---|---|---|
| node-options-1.patch | 1.21 KB | wiz-1 |
Comments
Comment #1
Steve Dondley commentedI can confirm this bug.
Comment #2
Steve Dondley commentedPatch seems to have fixed the bug. But I just did one quick test.
Comment #3
killes@www.drop.org commentedchanging status.
the patch applies and probably also fixes the problem, but does nto follow Drupal's code conventions.
Comment #4
chx commentedThis is fixed in CVS ages ago by my form checkbox(es) patch.
Comment #5
(not verified) commentedComment #6
(not verified) commentedComment #7
(not verified) commentedComment #8
(not verified) commentedComment #9
(not verified) commented