[TYPO3-core] RFC #8893: Bug: eval "timesec" sets seconds to zero

Peter Kuehn [wmdb] peter.kuehn at wmdb.de
Thu Jun 17 11:46:22 CEST 2010


+1 by reading and testing in production

gRTz
pekue

Andy Grunwald [wmdb] schrieb:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=8893
> 
> Branches:
> TYPO3 4.2, TYPO3 4.3, trunk
> 
> Problem:
> If a column in $TCA configured to 'eval' => 'timesec' the seconds are 
> set to zero after leaving the BE-field.
> 
> The bug occurs only if there is no checkbox.
> 
> How to reproduce this bug:
> - Install the dummy extension
> - Edit a page record
> - Search the fields "bug_8893 without checkbox" and "bug_8893 with 
> checkbox" (look at "Extended"-tab)
> - Add the dummy value "10:56:15" to the field "bug_8893 without 
> checkbox" and klick next to the field. The value "10:56:00" appears.
> - Add the dummy value "10:56:15" to the field "bug_8893 with checkbox" 
> and klick next to the field. The value "10:56:15" appears.
> - Apply the patch and repeat the last two steps
> - Now the value "10:56:15" in the field "bug_8893 without checkbox" appears
> 
> Solution:
> Remove the "Math.round"-Function-call in JS (see Patch and BugTracker 
> for details)
> 
> Notes:
> Thanks to Jochen Rau who reported the bug and Ralf Hettinger who write 
> the attached patch.
> I´m only the guy who created the dummy extension to reproduce it and 
> posted it on the mailling list.
> 
> Best regards,
> Andy
> 


More information about the TYPO3-team-core mailing list