Project

General

Profile

Actions

Bug #53553

closed

TcaTree Already set categories are getting deleted when adding new ones

Added by Kaan Sanli over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2013-11-12
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When adding additional categories to e.g. news, which already have set categories, under certain circumstances the old categories get deleted.

This happens when using a multi-level category-tree, selecting additional (sub)categories, while having already selected subcategories, which are not visible, because the parent category is not expanded to show it's subcategories.

Example:

- Cat1 (not selected, not expanded, so you can't see the selected child-subcats 1 & 2 )
- Subcat 1 (already selected)
- Subcat 2 (already selected)
- Cat2 (not selected, is expanded to add the addional child-subcat)
- Subcat 3 (this one is added addionally)

After saving, only Subcat 3 is still selected, while Subcat 1 & Subcat 2 aren't anymore.

As soon as one category having already selected subcategories is expanded and retracted again, the bug doesn't show anymore, even when you add new categories.

This bug was reproduced in T3-versions 4.7.14 with news system (v2.0.0) and 6.0.10 with news system (v2.1.0).

For now we solved the problem using

$TCA['tx_news_domain_model_news']['columns']['categories']['config']['treeConfig']['appearance']['expandAll'] = 1;

So the category-tree is always completly expanded and the bug can't happen anymore.

Actions

Also available in: Atom PDF