Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Cant set boolean value in Form.add_item #121

Closed
minhnhb opened this issue Dec 13, 2011 · 1 comment
Closed

Cant set boolean value in Form.add_item #121

minhnhb opened this issue Dec 13, 2011 · 1 comment

Comments

@minhnhb
Copy link

minhnhb commented Dec 13, 2011

This is my code:

form.add_reported('ready', ftype='boolean')

form.add_item({'ready':True})

But sadly it does not work! the form can not set the field's type to boolean

legastero added a commit that referenced this issue Dec 13, 2011
The item fields were not setting their type based on the reported
field's type attribute, so values were not being encoded properly.

Fixes issue #121
@legastero
Copy link
Collaborator

This should be fixed now in the develop branch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants