Bug #72654
closedDate and Datetime cause error at page copy
100%
Description
When I copy a page, I got an error from the typo3_src-6.2.17/typo3/sysext/core/Classes/DataHandling/DataHandler.php telling me, getTimestamp causes an error.
This is somehow, because the $dateTime here has the value FALSE, but it should have at least the value 0000-00-00.
Problem Line ~1729: $value = $value === $emptyValue: $dateTime->getTimestamp();
Fix: $value = $value === $emptyValue || $dateTime === false ? 0 : $dateTime->getTimestamp();
This might be due to a customised TCA in my table PAGES using DATE as a database field.
"tx_mask_eventstart": {
"config": {
"type": "input",
"dbType": "date",
"size": "8",
"max": "20",
"eval": "date"
},
"key": "eventstart",
"l10n_mode": "exclude"
},
Updated by Michael Fritz almost 9 years ago
The issue is not big but when a page is being copied, there is a lot of trouble:
- a duplicate page with the same ID as the original appears in the page tree.
- the content in fal fields are beeing duplicated within the original page (which is very problematic)
- no roll back due to the error...
Updated by Gerrit Code Review almost 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 https://review.typo3.org/46426
Updated by Gerrit Code Review almost 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 https://review.typo3.org/46426
Updated by Nicole Cordes over 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 735efdaecb9eda5389333b5187f5053e1b4a175a.
Updated by Gerrit Code Review about 8 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50672
Updated by Gerrit Code Review about 8 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50673
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50673
Updated by Gerrit Code Review about 8 years ago
Patch set 3 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/50673
Updated by Nicole Cordes almost 8 years ago
- Status changed from Under Review to Resolved
Applied in changeset bab723b055578ff7a2991c5a070a4e7dc5d251b4.