Issue Bug Closed

#99177Check `columnsOverrides` for `types` when copy or translate

Martin Pribyl 11/24/22, 09:44 updated 03/23/25, 21:56

Description

Currently when you want to use one field in tt_content for inline input, and you are changing the source table by `columnsOverrides` given by `types` it’s not applied when you are copying or translating and always the default table is used.

My suggestion would be in those actions to do:
get field name of from type -> $typeField = [‘ctrl’][‘type’];
get value of give field -> $typeValue = $someRow[$typeField];
check if exists column overrides $GLOBALS[‘TCA’][‘some_table’][‘types’][$typeValue]
replace if exists for all the actions $GLOBALS[‘TCA’][‘some_table’][‘columns’][‘field’][‘config’][‘foreign_*’] to $GLOBALS[‘TCA’][‘some_table’][‘types’][$typeValue][‘columnsOverrides’][‘field’][‘config’][‘foreign_*’]

Thank you Team! :)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Martin Pribyl changed tracker Feature Bug TYPO3 Version 11 07/17/23, 16:10

  2. Benni Mack commented and changed status New Needs Feedback 06/20/24, 10:31

    Hey Martin,

    this issue is private. Did you do this intentionally? Because then, nobody (except myself) can see the issue.

    Also: Do you have an example for TCA on how to use this? It is not possible to change the type / foreign_* functionality on a per “columnsOverrides” basis, as this is on a much deeper level to evaluate.

  3. Benni Mack commented and changed status Needs Feedback Closed 03/23/25, 21:56

    Closing this issue due to lack of feedback after 90 days. If you feel this is the wrong decision, let me know, so I will re-open the issue.

    In addition, I think your problem is now solved in v13.

  4. Benni Mack changed is private 03/23/25, 21:56