Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
forms system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jul 2007 at 00:35 UTC
Updated:
14 Jul 2007 at 00:07 UTC
Jump to comment: Most recent file
Comments
Comment #1
yched commentedNot sure that's relevant, but $form['#post'] has no value for an unchecked checkbox.
So on those lines in _form_builder_handle_input_element (form.inc line 802) :
$edit gets set to NULL, and $form['#value'] never gets set by form_type_checkbox_value, so with '#default_value' and the checkbox stays checked.
Comment #2
yched commenteder, the end of the previous post should read :
'... so we stick to '#default_value' and the checkbox stays checked.'
Comment #3
AjK commentedWell, we're both looking in the same ball park (and we're both obviously working on it at the same time, shame you're not in #drupal right now).
Anyway, the attached patched fixed it for me (and it's right on the node of your observations above).
However, this patch does need Eaton or Chx to review
Comment #4
eaton commentedThe root of this problem is serious -- the WRONG version of this patch (http://drupal.org/node/121620) was committed to core. The last version of the patch in that issue fixes this issue as well as a couple of other bits.