formfields
Joined: 01 Aug 2005 Posts: 465
|
Posted: Fri Jan 26, 2007 7:05 pm Post subject: Bug When Using IntegerField With Confirmation Screen |
|
|
When using the Confirmation Screen option with an IntegerField, undesirable results occur when entering a 0. After confirming the data, the value of the IntegerField gets set to null instead of 0. You can fix this by editing FORMfields.php and replacing a line in the FormField::getParameter() function:
Replace:
| Code: |
if (array_key_exists($this->getName(), $_REQUEST) || $value) {
|
with:
| Code: |
if (array_key_exists($this->getName(), $_REQUEST) || $value != null) {
|
|
|