[vcl4php-developers] checkbox fix
Brought to you by:
ttm
|
From: Jonathan B. <co...@jo...> - 2009-01-06 17:21:34
|
There is a bug in the Checkbox control that shows when one uses a Checkbox with no caption. The checkbox automatically sets its Checked property to true when the form is submitted. Basically the Checkbox compares its Caption (which is an empty string) against the POST array, without checking that it even exists in the POST array. The POST array returns an empty string for non-existant items, so the Checkbox incorrect determines that it has been checked. I've attached a patch that fixes this issue. Jon |