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

Steffen Ritter info at rs-websystems.de
Sun Jun 20 17:45:53 CEST 2010


Am 17.06.2010 11:38, schrieb Andy Grunwald [wmdb]:
> 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
this has the side-effect, that all datetime fields will also have 
seconds even if they are not displayed. but i do not think that this 
will have any side effects... so:
+1 reading and testing




More information about the TYPO3-team-core mailing list