Bug #54018
closedExtra compare in InlineElement::renderForeignRecord()
100%
Description
The line:
$isNewRecord = MathUtility::canBeInterpretedAsInteger($rec['uid']) ? FALSE : TRUE;
Can be replaced with:
$isNewRecord = MathUtility::canBeInterpretedAsInteger($rec['uid']);
Since MathUtility::canBeInterpretedAsInteger() returns a boolean.
Updated by Michiel Roos about 11 years ago
That should be:
$isNewRecord = !MathUtility::canBeInterpretedAsInteger($rec['uid']);
Updated by Gerrit Code Review about 11 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/25714
Updated by Gerrit Code Review about 11 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/25714
Updated by Gerrit Code Review about 11 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/25714
Updated by Michiel Roos about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 6568a1502ded337608f68fa0a8c51e34219636eb.