Issue Bug Closed

#81549Deleting categories in trash bin does not delete mm records

Gone With the Wind 06/12/17, 11:52 updated 08/12/25, 14:37

Description

Steps to reproduce:

0. install/active recycler
1. create a page and a category
2. assign the page to the category
3. delete the category
4. goto the trash bin and delete the category there
5. check the database, table “sys_category_record_mm”

Expected result:
sys_cetgory_record_mm should not have any relation to any category record.

What really happens:
After deletion of a category, all the mm-relations remain to pages or ttcontent are NOT deleted.

Further observations:
If afterwards a new category is created and the pages are assigned to that new category, the values in the sys_categories_relations_mm update and any old, non-existing ones disappear.

Reviews 3

History 1134

Show 49 earlier messages
  1. J W commented <span data-processor="relativetime" data-value="2018-04-06T14:29:39+00:00" > 04/06/18, 14:29 </span>

    Can reproduce this issue on current master (d12e0fc9f4b4634bbb38871e835c355e40323478)

  2. J W commented <span data-processor="relativetime" data-value="2018-04-06T14:44:26+00:00" > 04/06/18, 14:44 </span>

    Its a greater misconception I guess.
    The method `\TYPO3\CMS\Core\DataHandling\DataHandler::deleteRecord` used does not honour any relations. It just tries to remove the single entry (in this case the category) from the database.

    Simplified call stack:
    \TYPO3\CMS\Recycler\Controller\RecyclerAjaxController::dispatch#147
    \TYPO3\CMS\Recycler\Domain\Model\DeletedRecords::deleteData#383
    \TYPO3\CMS\Core\DataHandling\DataHandler::deleteRecord#5227

  1. Christian Kuhn commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-05-26T10:20:08+00:00" > 05/26/25, 10:20 </span>

    Applied in changeset commit:748f08e8700d8b95d6d9559f528d8c33fdf8408c.