#82990Hidden TCA fields are rendered if used as label
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
Reviews 4
- 9.5 64148[BUGFIX] Fix check for skipping translation of the metadata file field
- main 64250[BUGFIX] Fix check for skipping translation of the metadata file field
- main 61970[BUGFIX] Disable translation for TCA field file of sys_file_metadata
- 9.5 63742[BUGFIX] Disable translation for TCA field file of sys_file_metadata