[TYPO3-core] RFC: Bug 4689: Error while entering a numbers like 50 or 50.00 into a double2 field

Michael Stucki michael at typo3.org
Tue Jan 23 12:59:12 CET 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_4689_v2.diff
Type: text/x-diff
Size: 531 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070123/87e342f1/attachment-0001.bin 


More information about the TYPO3-team-core mailing list