Bug #66135
closedComputed properties are queried in workspace context
100%
Description
Hi everybody,
I have a project with an individual extension, where I'm extending tt_content with IRRE elements, including FAL relations.
- tt_content
- IRRE elements
- FAL inside IRRE elements
- IRRE elements
In regular view, everything works find, but when I modify an existing IRRE element, using "workspaces", the frontend throws a "Fatal Error" exception:
#1: PHP Catchable Fatal Error: Argument 3 passed to TYPO3\CMS\Frontend\Page\PageRepository::getFileReferences() must be of the type array, boolean given
And there also is a SQL error
caller | TYPO3\CMS\Core\Database\DatabaseConnection::exec_SELECTquery |
ERROR | Unknown column '_ORIG_pid' in 'field list' |
lastBuiltQuery | SELECT uid,pid,content,title,subtitle,image,link,text,tstamp,crdate,cruser_id,deleted,hidden,starttime,endtime,t3ver_oid,t3ver_id,t3ver_wsid,t3ver_label,t3ver_state,t3ver_stage,t3ver_count,t3ver_tstamp,t3ver_move_id,sorting,sys_language_uid,l10n_parent,l10n_diffsource,moduleimageslide,fieldname,_ORIG_pid,_ORIG_uid FROM tx_myextension_domain_model_modulecontent WHERE pid=-1 AND t3ver_oid=530 AND t3ver_wsid=5 AND tx_myextension_domain_model_modulecontent.deleted=0 LIMIT 1 |
Files
Updated by Oliver Hader about 9 years ago
- Status changed from New to Needs Feedback
Can you please provide the full stack-trace? It seems that something used the fields of an overlaid record row (which contains the computed property _orig_pid) and uses that as field value for a new SQL query.
Updated by Oliver Hader almost 9 years ago
- Subject changed from Versioning of IRRE with FAL to Computed properties are queried in workspace context
Updated by Gerrit Code Review almost 9 years ago
- Status changed from Needs Feedback 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 https://review.typo3.org/45491
Updated by Gerrit Code Review almost 9 years ago
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/45492
Updated by Gerrit Code Review almost 9 years ago
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/45493
Updated by Oliver Hader almost 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 86a5b5d545f52c6b68bcfd16213162d680f90b57.