Issue Bug Closed

#94408Content element shows form fields for ctype text although it is not allowed

Flo no-lastname-given 06/24/21, 14:13 updated 12/02/25, 14:33

Description

I created a backend usergroup which is only allowed to create content elements of type image.
When navigating to a page in the list module and creating a new content element the only allowed content type image is selected in the type dropdown. The form fields are the ones from the element of type text. Only after saving the content element really becomes an image element.

My current workaround is to also allow the text element and thus force the backend user to switch to image which then reloads with the correct form fields. The text content element is not needed though.

bug.png

Reviews 4

Files 1

History 620

  1. Gerrit Code Review pushed patch set 1 for master to change 69913 status New Under Review <span data-processor="relativetime" data-value="2021-07-18T08:27:10+00:00" > 07/18/21, 08:27 </span>

  2. Georg Ringer commented <span data-processor="relativetime" data-value="2021-11-06T10:45:23+00:00" > 11/06/21, 10:45 </span>

    also confirmed using e.g `TCEFORM.tt_content.CType.removeItems = text` and also e.g. reported for ext:news at https://github.com/georgringer/news/issues/932

  3. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-04-11T23:05:09+00:00" > 04/11/25, 23:05 </span>

    Applied in changeset commit:0d81d8f43788ab40f73e9d4ea62923fa6addf293.