Actions
Bug #70046
closedIntegerValidator doesn't work
Start date:
2015-09-23
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
I define in the model the field accountID:
/** * accountId * * @var integer */ protected $accountId = 0;
In dem Formular trage ich ins Feld 100000000000000000000000000 ein, und Extbase bzw. Validator meckert nicht. Statt eine Fehlermeldung zu zeigen, wird der größte Integer-Wert 2147483647 in die DB geschrieben. Außerdem wenn ich im Formular das Feld leer lasse, wird in die DB 0 geschrieben und ich bekomme ebenso keine Fehlermeldung. (leer <> 0)
Ich habe festgestellt, dass Integer-Validator gar nicht ins Spiel kommt. Die Validierung läuft über IntegerConverter, was an der Stelle falsch ist.
Actions