Project

General

Profile

Actions

Bug #66523

closed

Refindex error for link wizard fields in flexforms

Added by Dominique Kreemers almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
Start date:
2015-04-21
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Stabilization Sprint

Description

If you use the link wizard in a flexform field inside a custom workspace to link to a FAL Record (sys_file), TYPO3 will create a reference to the FAL Record.
So far so good, this is the expected behaviour, because of this we can see in File > Filelist that this record has a RefIndex record pointing to it.
The Problem is: In the Workspaces Module TYPO3 tries to find the sys_file Record (\TYPO3\CMS\Version\Dependency\ElementEntity
>getRecord) with the given Workspace-Uid, and because the sys_file table isn't enabled for workspaces the result of this query is empty.
As a result of this \TYPO3\CMS\Version\Dependency\ElementEntityProcessor->createNewDependentElementCallback will throw a RuntimeException that tells you that "Element sys_file:{someFileUid} does not exist".
If you install the attached extension into a fresh TYPO3 6.2 install you can reproduce the error by creating a content element of Type "Flexform Test" inside of a custom workspace, change to the "Flexform Test" tab and select a File by clicking on the link icon to open the link wizard. After saving your changes, you will have the error right after going to the workspace module and switching into your workspace where you created the content element.


Files

flexform_test.zip (3.94 KB) flexform_test.zip Dominique Kreemers, 2015-04-21 16:56

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #66572: Workspaces and templavoiaClosedAlexander Opitz2015-04-24

Actions
Related to TYPO3 Core - Bug #66882: Workspace 'file_reference'Closed2015-05-11

Actions
Actions

Also available in: Atom PDF