Project

General

Profile

Actions

Bug #81549

open

Deleting categories in trash bin does not delete mm records

Added by Gone With the Wind almost 7 years ago. Updated about 6 years ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
Recycler
Start date:
2017-06-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
category, sys_category
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Susanne Moog about 6 years ago

  • Category set to Recycler
  • Target version changed from 9.0 to 9.2
Actions #2

Updated by J W about 6 years ago

Can reproduce this issue on current master (d12e0fc9f4b4634bbb38871e835c355e40323478)

Actions #3

Updated by J W about 6 years ago

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

Actions #4

Updated by Susanne Moog about 6 years ago

  • Target version changed from 9.2 to Candidate for Major Version
Actions

Also available in: Atom PDF