Fixes maximumNestingLevel condition in categoryOptionList.tpl
authorMatthias Schmidt <gravatronics@live.com>
Wed, 9 Oct 2013 16:47:17 +0000 (18:47 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 9 Oct 2013 16:47:17 +0000 (18:47 +0200)
com.woltlab.wcf/templates/categoryOptionList.tpl
wcfsetup/install/files/acp/templates/categoryOptionList.tpl

index f362f14359a380eb062e8574fa0c5f3242beec0e..0d0860db0ec9ad6934bbc1187a0034febc08141e 100644 (file)
@@ -1,5 +1,5 @@
 {foreach from=$categoryNodeList item='category'}
-       {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() <= $maximumNestingLevel}
+       {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() < $maximumNestingLevel}
                <option value="{$category->categoryID}"{if $categoryID|isset && $categoryID == $category->categoryID} selected="selected"{/if}>{section name=i loop=$categoryNodeList->getDepth()}&nbsp;&nbsp;&nbsp;&nbsp;{/section}{$category->getTitle()}</option>
        {/if}
-{/foreach}
\ No newline at end of file
+{/foreach}
index f362f14359a380eb062e8574fa0c5f3242beec0e..0d0860db0ec9ad6934bbc1187a0034febc08141e 100644 (file)
@@ -1,5 +1,5 @@
 {foreach from=$categoryNodeList item='category'}
-       {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() <= $maximumNestingLevel}
+       {if !$maximumNestingLevel|isset || $maximumNestingLevel == -1 || $categoryNodeList->getDepth() < $maximumNestingLevel}
                <option value="{$category->categoryID}"{if $categoryID|isset && $categoryID == $category->categoryID} selected="selected"{/if}>{section name=i loop=$categoryNodeList->getDepth()}&nbsp;&nbsp;&nbsp;&nbsp;{/section}{$category->getTitle()}</option>
        {/if}
-{/foreach}
\ No newline at end of file
+{/foreach}