Make `categoryMultiSelectOptionType.tpl` behave like `categoryOptionList.tpl`
authorMaximilian Mader <max@bastelstu.be>
Tue, 14 Sep 2021 16:19:15 +0000 (18:19 +0200)
committerMaximilian Mader <max@bastelstu.be>
Tue, 14 Sep 2021 16:19:15 +0000 (18:19 +0200)
commitecf0af67c6e078dba1be6c57c4d58b649ff91e73
tree96830c49697c6c274fe1f3d3e8c00f22a343c462
parent7c64d8ff560db7cb1364268a2d703d5f5ef6b288
Make `categoryMultiSelectOptionType.tpl` behave like `categoryOptionList.tpl`

Currently the `categoryMultiSelectOptionType.tpl` outputs nodes of depth 0 and depth 1,
but article categories for example can be nested deeper than that.
The `categoryOptionList.tpl` as used by the category add forms handles arbitrary nesting levels already,
so I’ve ported the template logic over to the multi select option template.

The maximum nesting depth in the `AbstractCategoryMultiSelectOptionType.class.php` has been changed
to the default value (-1) to allow for infinite nesting depths.
wcfsetup/install/files/acp/templates/categoryMultiSelectOptionType.tpl
wcfsetup/install/files/lib/system/option/AbstractCategoryMultiSelectOptionType.class.php