[drupal-devel] [bug] Problem when no node options are selected
killes
drupal-devel at drupal.org
Wed Aug 10 18:24:19 UTC 2005
Issue status update for
http://drupal.org/node/19041
Post a follow up:
http://drupal.org/project/comments/add/19041
Project: Drupal
Version: cvs
Component: node.module
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: wiz
Updated by: killes at www.drop.org
-Status: active
+Status: patch (code needs work)
changing status.
the patch applies and probably also fixes the problem, but does nto
follow Drupal's code conventions.
killes at www.drop.org
Previous comments:
------------------------------------------------------------------------
Thu, 17 Mar 2005 08:13:19 +0000 : wiz
Attachment: http://drupal.org/files/issues/node-options-1.patch (1.21 KB)
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.
------------------------------------------------------------------------
Thu, 09 Jun 2005 21:58:08 +0000 : nysus
I can confirm this bug.
------------------------------------------------------------------------
Thu, 09 Jun 2005 22:02:09 +0000 : nysus
Patch seems to have fixed the bug. But I just did one quick test.
More information about the drupal-devel
mailing list