Opened 14 years ago

Closed 14 years ago

#126 closed defect (fixed)

encodeForm function submits all checkbox elements' values, even if some are not checked

Reported by: knave Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.1
Keywords: Cc:
Blocked By: Blocking:

Description

<input type="check" name="test" value="1" />
<input type="check" name="test" value="2" />
<input type="check" name="test" value="3" />

It will submit as "test=1,2,3" even if only one or none is not checked.

*Tested with nightly release (27/9)

Change History (2)

comment:1 Changed 14 years ago by anonymous

In src/io/BrowserIO.js, line 49 should read:

}else if(dojo.lang.inArray(type, ["radio", "checkbox"])){

NOT:

}else if(dojo.lang.inArray(type, ["radio", "checked"])){

comment:2 Changed 14 years ago by david

Resolution: fixed
Status: newclosed

(In [1645]) fixes #126

Note: See TracTickets for help on using tickets.