Bug #69875
closedcustom named enablecolumns for starttime and enttime don't work
100%
Description
In TypoScriptFrontendController:
The function getFirstTimeValueForRecord() builds a query like this:
SELECT MIN (' . $timeField . ') AS ' . $field ...
- $field is either 'starttime' or 'endtime'
- $timeField are the names of the model's enablecolumns
Later we try to get the $result by checking $row[$timeField]
So if there are custom names for the enablecolumns, for example 'visible_from' and 'visible_to', the $row[$timeField] is empty all the time.
Because of the 'AS' statement we could only access the array $row by the key 'starttime' or 'endtime', but with $row[$timeField] we try to access $row by the key 'visible_from' or 'visible_to'.
This issue could be fixed by changing $row[$timeField] to $row[$field].
Updated by Gerrit Code Review about 9 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43488
Updated by Gerrit Code Review about 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43488
Updated by Georg Ringer about 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 78e20942134e18ab5ec32a36b1a2c0effd0f960f.
Updated by Gerrit Code Review about 9 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/43512
Updated by Georg Ringer about 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset a8adda4723344a0a79d21d79ac3f73749ec65fa9.