Issue Bug Under Review Quiet

#81996Read-only select field 'renderType' => 'selectSingle' renders all available items

Tymoteusz Motylewski 07/28/17, 13:33 updated 10/24/26, 09:14

Description

Readonly select field with ‘renderType’ => ‘selectSingle’ renders all available items in the select box.

Instead, only currently selected item should be rendered. This influences performance when there are many available elements.

Reviews 1

History 1113

  1. S P commented <span data-processor="relativetime" data-value="2025-01-09T09:57:44+00:00" > 01/09/25, 09:57 </span>

    The conflict here is, that a potential displayCond should have all items available. The existence of a displayCond could however be checked as well when rendering such a field ( readonly && !displayCond ).

    To workaround your performance issue you can add a foreign_table_where , however yourself:

    AND foreign_table_name.uid = ###REC_FIELD_yourfieldname###

    This will have the effect you need. I do this all the time, for example on the parent backreference field of inline relations (if you have such a field in the TCA of the child table, e.g. to map it to Extbase, then the core will run a full select * for each inline relation in the backend GUI, which can be even worse than a simple readonly select field).

  2. Simon Schaufelberger commented and changed TYPO3 Version 13 12 <span data-processor="relativetime" data-value="2025-01-09T11:10:44+00:00" > 01/09/25, 11:10 </span>

    please do NOT change this to the newest version because it also applies to 12.

  3. S P commented and changed TYPO3 Version 12 13 <span data-processor="relativetime" data-value="2026-06-11T07:27:08+00:00" > 06/11/26, 07:27 </span>

    Still valid on v14. (changing this ticket at least to v13 now, since v12 won’t get this for sure as it is now ELTS – actually even v13 won’t get this as will, becaue it is in Priority Bugfixing phase, and this here is for sure no prioritybug fix)

  4. S P changed subject Read ony select field 'renderType' => 'selectSingle' renders all available items Read-only select field 'renderType' => 'selectSingle' renders all available items description <span data-processor="relativetime" data-value="2026-06-11T07:28:09+00:00" > 06/11/26, 07:28 </span>