Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
netteForms: EQUAL and RANGE validations with float value fails on czech locale #1430
Following code will fail on JS validation (server validation is ok). On czech locale, the visible default value in input is actually
$form->addText('float', "Float") ->setRequired() ->setDefaultValue(1.1) ->addRule($form::FLOAT) // filters 1,1 to 1.1 only on server side ->addRule($form::RANGE, "%label must be at least %d", array(1.1, NULL)); // fails // also EQUAL fails
Tested on stable 2.1.1.