Project

General

Profile

Actions

Bug #85695

closed

TCA columnsOverrides (tt_content:media) for types not properly respected on saving record in BE

Added by Martin Schulz over 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2018-07-31
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Overriding the allowed filetypes for tt_contents "media" field using columnsOverrides will properly render in backend on editing/creating the record but will not save the sys_file_reference.

 $GLOBALS['TCA']['tt_content']['types']['my_type']['columnsOverrides']['media']['config']['filter'][0]['parameters']['allowedFileExtensions']='html';
 $GLOBALS['TCA']['tt_content']['types']['my_type']['columnsOverrides']['media']['config']['overrideChildTca']['columns']['uid_local']['config']['appearance']['elementBrowserAllowed']='html';

So on editing the record it properly shows the overriden filtype in both the inline field and the element browser popup. On saving the record though the field is not properly saved (value "0") in db.

First examination shows that DataHandler::checkValue() seem to not properly respect columnsOverrides, so it check based on original allowedFileExtensions config which does not include 'html'.

Actions

Also available in: Atom PDF