SingleCheckBoxWidget in HIDDEN_MODE always yields true

Bug #752482 reported by Wolfgang Schnerring on 2011-04-06
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
z3c.form
Undecided
Unassigned

Bug Description

If a SingleCheckBoxWidget belongs to a BooleanField whose value is False and is rendered in HIDDEN_MODE, the field's value is set to True when the form is submitted -- which is clearly not the desired result.

For the SingleCheckBoxWidget this can be fixed with the attached patch, but then other tests in checkbox.txt break, relating to the (Multi)CheckBoxWidget, and I don't understand enough about that to fix those. Could someone more familiar with the code integrate the patch?

Stephan Richter (srichter) wrote :

Wolfgang, can you provide a test showing the issue in the first place? Then I can have a better look at the problem and the proposed solution.

Changed in z3c.form:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers