#91608Category: on child as parent assignment, sub-tree is unavailable
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
-
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>
-
Benni Mack changed project id TYPO3 Version 10 <span data-processor="relativetime" data-value="2021-08-04T07:54:31+00:00" > 08/04/21, 07:54 </span>
-
Garvin Hicking commented and changed status
NewNeeds 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?
-
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 -
Garvin Hicking changed description category <span data-processor="relativetime" data-value="2025-06-26T15:29:13+00:00" > 06/26/25, 15:29 </span>
-
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)
-
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.
-
Gerrit Code Review pushed patch set 1 for main to change 96506 status
Needs FeedbackUnder Review <span data-processor="relativetime" data-value="2026-10-07T19:41:13+00:00" > 10/07/26, 19:41 </span> -
Oliver Bartsch changed Duplicated by #106516 <span data-processor="relativetime" data-value="2026-10-26T08:35:17+00:00" > 10/26/26, 08:35 </span>
-
Gerrit Code Review pushed patch set 2 for main to change 96506 <span data-processor="relativetime" data-value="2026-10-26T10:58:40+00:00" > 10/26/26, 10:58 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 96506 <span data-processor="relativetime" data-value="2026-10-26T21:28:01+00:00" > 10/26/26, 21:28 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 96506 <span data-processor="relativetime" data-value="2026-11-09T20:58:04+00:00" > 11/09/26, 20:58 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 96506 <span data-processor="relativetime" data-value="2026-11-12T10:52:08+00:00" > 11/12/26, 10:52 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97585 <span data-processor="relativetime" data-value="2026-11-12T19:13:05+00:00" > 11/12/26, 19:13 </span>
-
Georg Ringer commented and changed status
Under ReviewResolved done0 %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.
sorry, tree is not correctly rendered … I attach an image