Issue Bug Closed

#90389Moving inline child record to other parent in draft workspace does not work

This Mächler 02/16/20, 07:44 updated 04/22/25, 10:41

Description

Situation:

1 Parent-> n Children
On parent side, the children are configured in TCA as inline records.
On the child side, TCA configuration type select to choose a parent.

Moving a child from one parent to another, the child will not show up in the inline view of the new parent. Only after publishing the workspace it will show up.

Reviews 0

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

History 4

  1. This Mächler commented <span data-processor="relativetime" data-value="2020-02-16T07:49:29+00:00" > 02/16/20, 07:49 </span>

    Related: https://forge.typo3.org/issues/90072 inline records not working workspace-transparent in Extbase. Did’t know that they don’t even work properly in the backend ;-) Maybe some tape or glue can do it..

  2. Christian Kuhn commented <span data-processor="relativetime" data-value="2024-02-09T17:56:36+00:00" > 02/09/24, 17:56 </span>

    Hey.

    Inline children are not supposed to be attached to different parents. An inline ‘root’ record should be seen as an ‘aggregate root’, where children can not move to a different parent. When your inline child TCA is configured to enable editing of the parent, then stop this: Doing so leads to inconsistencies with localized children, and destroys workspace consistency.

    I’m not closing the issue since the core should add counter-measures here: Inline children TCA should be scanned for TCA that allows changing parent uid and should throw / or note about this invalid configuration.

  3. This Mächler commented <span data-processor="relativetime" data-value="2024-02-24T00:22:45+00:00" > 02/24/24, 00:22 </span>

    I see the point.
    But there seems to be no satisfying alternative backend editing configuration for my specific need:
    The children are project documentations (architectural works), parent is a category for the project (e.g. “apartments”, “gastronomy”). Additionally, the projects have a editable sorting in which they should appear in the frontend. And it can happen that a projects needs to be moved to another category. The inline backend configuration allows to drag and drop the children to change the sorting, and to display a list of all children belonging to a category.
    Filtering the projects by parent and then change sorting and edit them is not a very intuitive experience for an editor. The workflow has to be:
    - choose a category
    - edit projects, change sorting (drag & drop), add projects, move projects to another category.
    In the ‘list’ module, the only way as far as I can see would be to sort the projects by category, scroll through the whole list (lots of entries) until the targeted category appears (after have added the respective column to the list of displayed columns) and work there. That’s a pain in the *ss for an editor. The best option so far for this case is inline TCA configuration, but as you mentioned this forbids to move records to another parent.

    There should be an intuitive solution for such needs. It seems pretty common to me. Using system categories or folders is also not really satisfying.

  4. Christian Kuhn commented and changed status New Closed <span data-processor="relativetime" data-value="2025-04-22T10:41:44+00:00" > 04/22/25, 10:41 </span>

    Hey.

    The issue was about moving inline children to a different parent, and that is not a good idea due to the negative side effects on localizations and workspaces. I guess this won’t change any time soon. We could implement countermeasures to prevent integrators from configuring such TCA, but that could go to a new issue.

    UI changes to allow different sorting for the described case could be a custom module to allow and optimize such management. If this should be done within core, it should go to a fresh issue with a good description and a rough plan on what needs to be changed, and how it could look like and integrate into the backend.

    I hope it is ok to close here for now, to not mix up too many different things in one issue.