[TYPO3-core] RFC: Bug 4689: Error while entering a numbers like 50 or 50.00 into a double2 field
Patrick Broens
patrick at patrickbroens.nl
Tue Feb 6 11:23:16 CET 2007
+1
Cheers
Patrick
Ingmar Schlecht wrote:
> Works fine.
>
> +1
>
> cheers
> Ingmar
>
> Michael Stucki schrieb:
>> This is a SVN patch request.
>>
>> Problem:
>> Input fields with type "double2" should be converted into a floating field
>> with 2 decimal points. However, the value in the database (e.g. 50.00) will
>> be converted into "50" upon save. Consequently, the comparison of TCEmain
>> will fail, and an error is returned.
>>
>> Solution:
>> Wrap the value with floatval() so that 50.00 returns 50, but 50.33 still
>> works.
>>
>> Bugtracker reference:
>> http://bugs.typo3.org/view.php?id=4689
>>
>> Branches:
>> TYPO3_4-0 & Trunk
>>
>> Comments:
>> Thanks to Simon Lang who wrote this fix.
>>
>> - michael
More information about the TYPO3-team-core
mailing list