Bug #91894
closed
Cast transOrigPointerField value to integer to ensure return type matches
Added by Daniel Siepmann over 4 years ago.
Updated about 4 years ago.
Description
When using sqlite, data fetched from DB is not of expected data types.
Therefore some return type hints will break.
In order to not break resolvePreviewRecordId(), there has to be a cast.
This prevents users from editing translated records.
- Status changed from New to Under Review
- Description updated (diff)
how did you find out? Some steps to reproduce the issue would be helpful in testing the change (and yes I realize it is minor). We might run into this root case elsewhere, too.
Sure, sorry.
Translate a record (e.g. tt_content or sys_category).
Use sqlite as DBMS.
Open the edit form of the translated record.
This should result in an error: `Return value of TYPO3\CMS\Backend\Controller\EditDocumentController::resolvePreviewRecordId() must be of the type int, string returned`.
I'm running my website on sqlite for this reason. But only use translations for a specific test right now.
The multiple possible locations are one reason I'm using sqlite. That way I'll find those bugs and can fix them.
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF