Project

General

Profile

Actions

Feature #82990

closed

Hidden TCA fields are rendered if used as label

Added by Tizian Schmidlin about 7 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2017-11-14
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hello there,

there is a flaw in the way TYPO3 handle the rendering of the backend Edit Forms in TYPO3 7 (and possibly in TYPO3 8 but I did not test that there). As it turns out, if a field is used as a label, the underlying form field is always rendered.

Now this is not a problem in 99.9% of the time but it is in one place that concerns every TYPO3: editing sys_file_metadata on a system with thousands of files. What happens is, that since the label of the sys_file_metadata record is the field file, the FormDataProvider TcaColumnsProcessRecordTitle will add file to the columnsToProcess for the current record and the TcaSelectItems will happily work it's way through and generate the html for the select box. Bare in mind, that this is absolute and utter dead weight since nowhere in the TCA showItem definition of any type the file field is referenced. This would not be to big of a problem since in most systems there are no more than 10k files but in systems with 100'000+ the memory get's used up and it can lead to memory exhausted errors in PHP (even with as much as 512M memory_limit).

Would it be possible to handle this special case in some way? Maybe by adding an additional DataProvider that removes all columsn that are not needed by showItem?

Best Regards
Tizian


Related issues 1 (0 open1 closed)

Precedes TYPO3 Core - Bug #91130: TCA for field "status" in EXT:filemetatada is broken since TYPO3 v9ClosedXavier Perseguers2017-11-152017-11-15

Actions
Actions

Also available in: Atom PDF