Project

General

Profile

Actions

Bug #99388

closed

Record preview broken when first writable field is a FAL file field

Added by Hannes Bochmann almost 2 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2022-12-16
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
preview
Complexity:
Is Regression:
Sprint Focus:

Description

When the TCA of a table is configured to display a FAL file field first or all fields before that FAL field are readonly then the preview won't work as expected. This is caused by the order of the data in the form POST request. The first entry in the data parameter will be sys_file_reference from the inline field. If the FAL field is not first then the first entry in the data parameter of the POST request will be from the actual TCA table.
This causes trouble in TYPO3\CMS\Backend\Controller\EditDocumentController::processData() when a preview is requested as the code uses the first entry of $this->data which will contain the form data as described above.

I ran into this problem with TYPO3 10.4. The code in 11.5 looks different so I don't know about that.

Actions #1

Updated by Georg Ringer 4 months ago

  • Status changed from New to Closed

Hey,

sorry for the late response! I have seen such issues in older installations but couldn't reproduce that now in v12 and v13 - therefore closing the issue!

if you don't agree, feel free to contact me via slack!

Actions

Also available in: Atom PDF