Bug #81549
openDeleting categories in trash bin does not delete mm records
0%
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.
Updated by Susanne Moog almost 7 years ago
- Category set to Recycler
- Target version changed from 9.0 to 9.2
Updated by J W over 6 years ago
Can reproduce this issue on current master (d12e0fc9f4b4634bbb38871e835c355e40323478)
Updated by J W over 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
Updated by Susanne Moog over 6 years ago
- Target version changed from 9.2 to Candidate for Major Version