AddonsLab
Well-known member
- Affected version
- 2.0.x, 2.1.x
Hello,
While working with an add-on that is using the standard tree structure to represent a category tree, we tested the deletion of categories with
The solution seems to be setting
Thank you!
While working with an add-on that is using the standard tree structure to represent a category tree, we tested the deletion of categories with
deleteChildAction
option being set to delete
and noticed, that if the children of the category being deleted have some child categories on their own, these grand-children (and their children) remain in the database, with no possibility to access them later. I assume also the items associated with them would remain in the database, but did not test that case specifically.The solution seems to be setting
deleteChildAction
option of XF:TreeStructured
behavior for the child categories based on the option from the current behavior.Thank you!