pluf2

pluf2 Commit Details


Date:2009-08-25 03:29:57 (15 years 3 months ago)
Author:Loic d'Anterroches
Branch:master
Commit:8954ac68c0dfc23108f56245119e82a12c48bffd
Parents: 27c5d25f0308483699e1c57e1f2a2ca12a07485b
Message:Correctly handles the case of a non required integer.

Changes:

File differences

src/Pluf/Form/Field/Integer.php
3434
3535
3636
37
3738
3839
3940
if ($this->multiple) {
return $this->multiClean($value);
} else {
if ($value == '') return $value;
if (!preg_match('/^[\+\-]?[0-9]+$/', $value)) {
throw new Pluf_Form_Invalid(__('The value must be an integer.'));
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05232s using 13 queries.