forms.py: Checkbox fill doesn't work correctly
Bug #569569 reported by
Justin
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
web.py |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Given a form with a Checkbox input, calling 'fill' on it doesn't work correctly.
This is due to the way class Form handles validation. It explicitly sets the input.value, instead of calling the newer "set_value" method.
The fix is simple: line 73 of form.py should go from:
- i.value = v
to:
+ i.set_value(v)
To post a comment you must log in.
Fixed.