Issue Bug Resolved

#91608Category: on child as parent assignment, sub-tree is unavailable

Davide Alghi 06/08/20, 10:12 updated 11/12/26, 19:20

Description

Model: TYPO3\CMS\Extbase\Domain\ModelCategory
Table: sys_category
===============================
If an existing category is edited and a child node is assigned as parent, after saving, the category and sub-tree, under edited category, are no more available (loop).

How to reproduce.
Current category tree is

Category
  |
  |__cat00
     |
     |__cat01
     |  |
     |  |__cat03
     |  |
     |  |__cat04
     |  |
     |  |__cat05
     |
     |__cat02

(re)edit cat01 category and change its parent to cat03, then save.
cat01 and sub-tree disappear: resettable only via database editing.

Reviews 3

Files 2

History 915

  1. Davide Alghi commented and changed attached CategoryLoop.jpg <span data-processor="relativetime" data-value="2020-06-08T10:21:17+00:00" > 06/08/20, 10:21 </span>

    sorry, tree is not correctly rendered … I attach an image

  2. Garvin Hicking commented and changed status New Needs Feedback <span data-processor="relativetime" data-value="2025-06-20T13:03:42+00:00" > 06/20/25, 13:03 </span>

    Are you able to reproduce this also on a current TYPO3v13 installation?

  3. Davide Alghi commented and changed attached Video del 2025-06-26 17-10-46.webm <span data-processor="relativetime" data-value="2025-06-26T15:17:15+00:00" > 06/26/25, 15:17 </span>

    Hi @supergarv,
    yes the prob is still there, in 14-dev.
    when a category is [re]edited, after first save, child nodes should be non-selectable.
    attached video

  4. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-06-26T15:33:52+00:00" > 06/26/25, 15:33 </span>

    Hhhhm, now I understand (reformatted the original text).

    By assigning it like this you are effectively trying to move a tree inside of it.

    You would be able though to recover from this by editing the single categories from the “web > list” view of category records and adjusting each single category to fix their parent. For example, cat03 would need to have the parent set to cat00 then?

    (Need to reproduce myself)

  5. Davide Alghi commented <span data-processor="relativetime" data-value="2025-06-26T16:14:50+00:00" > 06/26/25, 16:14 </span>

    I’m getting the video naming as example … create a new (temp) category and save. Edit the Parent category and set temp as Parent’s parent category. save. adjust as you need.

  6. Gerrit Code Review pushed patch set 1 for main to change 96506 status Needs Feedback Under Review <span data-processor="relativetime" data-value="2026-10-07T19:41:13+00:00" > 10/07/26, 19:41 </span>

  7. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-12T19:20:11+00:00" > 11/12/26, 19:20 </span>

    Applied in changeset commit:2d69e230df6f76c50977a6b6777676566eaa8cf9.