Project

General

Profile

Actions

Bug #26503

closed

Endtime cannot be removed

Added by José Ricardo over 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-04-29
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

On Typo3 4.5.2, when you set the endtime to any record, save and then remove the endtime, it will not be removed, but use today date.
It's caused by this config on TCA of the record (field endtime):

'range' => array (
'upper' => mktime(3, 14, 7, 1, 19, 2038),
'lower' => mktime(0, 0, 0, date('m')-1, date('d'), date('Y'))
)

Probably, when you remove the endtime (it's set to 0) the TCE verifies that it's lower than the "lower" range set above and reset the value to today.


Files

class.t3lib_tcemain_patch.txt (943 Bytes) class.t3lib_tcemain_patch.txt Todd Hossack, 2011-05-18 04:52

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #28298: TCE form field with range cannot be cleared in some casesClosed2011-07-18

Actions
Actions

Also available in: Atom PDF