Skip to content

Commit 7044cd7

Browse files
committed
Provide the option to disable menu items when editing
This led to the issue that when editing a disabled menu item, it was automatically enabled. ref https://www.woltlab.com/community/thread/308911-unexpected-behaviour-when-saving-menu-items/
1 parent 35e8777 commit 7044cd7

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

wcfsetup/install/files/acp/templates/menuItemAdd.tpl

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,12 @@
117117
</dd>
118118
</dl>
119119

120-
{if $action == 'add'}
121-
<dl>
122-
<dt></dt>
123-
<dd>
124-
<label><input type="checkbox" name="isDisabled" id="isDisabled" value="1"{if $isDisabled} checked{/if}> <span>{lang}wcf.acp.menu.item.isDisabled{/lang}</span></label>
125-
</dd>
126-
</dl>
127-
{/if}
120+
<dl>
121+
<dt></dt>
122+
<dd>
123+
<label><input type="checkbox" name="isDisabled" id="isDisabled" value="1"{if $isDisabled} checked{/if}> <span>{lang}wcf.acp.menu.item.isDisabled{/lang}</span></label>
124+
</dd>
125+
</dl>
128126

129127
{event name='dataFields'}
130128
</div>

0 commit comments

Comments
 (0)