Fixes number of closing tags if list depth decreases
authorMatthias Schmidt <gravatronics@live.com>
Wed, 13 Jun 2012 19:10:09 +0000 (21:10 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 13 Jun 2012 19:10:09 +0000 (21:10 +0200)
wcfsetup/install/files/acp/templates/categoryList.tpl

index b5b8b5bfc1d1af40425660aef3f0aa7145a99e05..2feda30ce849fe11ab1245426d59cef58790394b 100644 (file)
@@ -55,9 +55,7 @@
                <ol class="categoryList sortableList" data-object-id="0">
                        {assign var=oldDepth value=0}
                        {foreach from=$categoryNodeList item=category}
-                               {if $categoryNodeList->getDepth() < $oldDepth}
-                                       </ol></li>
-                               {/if}
+                               {section name=i loop=$oldDepth-$categoryNodeList->getDepth()}</ol></li>{/section}
                                
                                <li class="{if $objectType->getProcessor()->canEditCategory() && $categoryNodeList|count > 1}sortableNode {/if}jsCategory" data-object-id="{@$category->categoryID}"{if $collapsedCategoryIDs|is_array} data-is-open="{if $collapsedCategoryIDs[$category->categoryID]|isset}0{else}1{/if}"{/if}>
                                        <span class="buttons">