php - CakePHP 2.6: Form validation insisting on the right number of decimals -


i upgraded app cakephp 2.6 , having issue form. field has mysql type of decimal(9,6), , new cake version form insisting value not exceed number of decimal places:

<?php echo $this->form->input('lat', array('id' => 'lat', 'class' => 'form-control', 'label' => false)); ?>

please enter valid value. 2 nearest valid values 67.535183 , 67.535182.

inspecting element, see formhelper applying step of 0.000001 fields, based on database schema.

in past, mysql round data off , fine. there way formhelper ignore this? reading formhelper docs, there's no mention of validating inputs decimal fields, turning off validation form-wide. currently, can override setting field type 'text', allows non-numeric input.


Comments