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

Andy Grunwald [wmdb] andreas.grunwald at wmdb.de
Thu Jun 17 11:38:50 CEST 2010


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: T3X_bug_8893-0_0_0-z-201006171118.t3x
Type: application/octet-stream
Size: 4807 bytes
Desc: not available
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100617/0d2fb459/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 8893_4.3_alpha1.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100617/0d2fb459/attachment.txt>


More information about the TYPO3-team-core mailing list