Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Steve Dondley commentedI can confirm this bug.
Comment #2
Steve Dondley CreditAttribution: Steve Dondley commentedPatch seems to have fixed the bug. But I just did one quick test.
Comment #3
killes@www.drop.org CreditAttribution: 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 CreditAttribution: chx commentedThis is fixed in CVS ages ago by my form checkbox(es) patch.
Comment #5
(not verified) CreditAttribution: commentedComment #6
(not verified) CreditAttribution: commentedComment #7
(not verified) CreditAttribution: commentedComment #8
(not verified) CreditAttribution: commentedComment #9
(not verified) CreditAttribution: commented