From 59237c523b06af68fb2502a7d8f75d59b4d0e514 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 26 Sep 2016 16:02:22 +0200 Subject: [PATCH] Added showOrder column in box list --- wcfsetup/install/files/acp/templates/boxList.tpl | 2 ++ wcfsetup/install/files/acp/templates/menuList.tpl | 8 +++++--- .../install/files/lib/acp/page/MenuListPage.class.php | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/boxList.tpl b/wcfsetup/install/files/acp/templates/boxList.tpl index 42bc2c8393..96a2a9ed6f 100644 --- a/wcfsetup/install/files/acp/templates/boxList.tpl +++ b/wcfsetup/install/files/acp/templates/boxList.tpl @@ -105,6 +105,7 @@ {lang}wcf.global.name{/lang} {lang}wcf.acp.box.type{/lang} {lang}wcf.acp.box.position{/lang} + {lang}wcf.global.showOrder{/lang} {event name='columnHeads'} @@ -127,6 +128,7 @@ {$box->name} {$box->boxType} {lang}wcf.acp.box.position.{@$box->position}{/lang} + {#$box->showOrder} {event name='columns'} diff --git a/wcfsetup/install/files/acp/templates/menuList.tpl b/wcfsetup/install/files/acp/templates/menuList.tpl index 72ac21dae7..3d748e8acd 100644 --- a/wcfsetup/install/files/acp/templates/menuList.tpl +++ b/wcfsetup/install/files/acp/templates/menuList.tpl @@ -33,8 +33,9 @@ {lang}wcf.global.objectID{/lang} {lang}wcf.global.name{/lang} - {lang}wcf.acp.box.position{/lang} {lang}wcf.acp.menu.item.list{/lang} + {lang}wcf.acp.box.position{/lang} + {lang}wcf.global.showOrder{/lang} {event name='columnHeads'} @@ -55,9 +56,10 @@ {event name='rowButtons'} {@$menu->menuID} - {lang}{$menu->title}{/lang} + {lang}{$menu->title}{/lang} + {#$menu->items} {$menu->position} - {#$menu->items} + {#$menu->showOrder} {event name='columns'} diff --git a/wcfsetup/install/files/lib/acp/page/MenuListPage.class.php b/wcfsetup/install/files/lib/acp/page/MenuListPage.class.php index 22e82254cc..cff32ddec3 100644 --- a/wcfsetup/install/files/lib/acp/page/MenuListPage.class.php +++ b/wcfsetup/install/files/lib/acp/page/MenuListPage.class.php @@ -38,7 +38,7 @@ class MenuListPage extends SortablePage { /** * @inheritDoc */ - public $validSortFields = ['menuID', 'title', 'position', 'items']; + public $validSortFields = ['menuID', 'title', 'position', 'items', 'showOrder']; /** * @inheritDoc @@ -51,6 +51,6 @@ class MenuListPage extends SortablePage { protected function initObjectList() { parent::initObjectList(); - $this->objectList->sqlSelects .= '(SELECT COUNT(*) FROM wcf'.WCF_N.'_menu_item WHERE menuID = menu.menuID) AS items, (SELECT position FROM wcf'.WCF_N.'_box WHERE menuID = menu.menuID) AS position'; + $this->objectList->sqlSelects .= '(SELECT COUNT(*) FROM wcf'.WCF_N.'_menu_item WHERE menuID = menu.menuID) AS items, (SELECT position FROM wcf'.WCF_N.'_box WHERE menuID = menu.menuID) AS position, (SELECT showOrder FROM wcf'.WCF_N.'_box WHERE menuID = menu.menuID) AS showOrder'; } } -- 2.20.1