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.

CommentFileSizeAuthor
node-options-1.patch1.21 KBwiz-1
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Steve Dondley’s picture

I can confirm this bug.

Steve Dondley’s picture

Patch seems to have fixed the bug. But I just did one quick test.

killes@www.drop.org’s picture

Status: Active » Needs work

changing status.

the patch applies and probably also fixes the problem, but does nto follow Drupal's code conventions.

chx’s picture

Status: Needs work » Fixed

This is fixed in CVS ages ago by my form checkbox(es) patch.

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Anonymous’s picture

Status: Fixed » Closed (fixed)