From 2d0ef491e50e2e183efa29fa3429e4b28524cf99 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Sat, 23 Dec 2023 10:31:44 +0800 Subject: [PATCH] * Fix bug #42052. --- module/branch/ui/manage.html.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/module/branch/ui/manage.html.php b/module/branch/ui/manage.html.php index f92a313b75..c86b860047 100644 --- a/module/branch/ui/manage.html.php +++ b/module/branch/ui/manage.html.php @@ -106,6 +106,7 @@ modal ); $tableData = initTableData($branchList, $config->branch->dtable->fieldList, $this->branch); +array_map(function($data){if($data->id == 0) $data->actions = array();}, $tableData); //Remove main branch actions. $footToolbar = array(); if($canBatchEdit) @@ -139,9 +140,7 @@ dtable set::sortLink(createLink('branch', 'manage', "productID={$product->id}&browseType={$browseType}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}")), set::onCheckChange(jsRaw('checkedChange')), set::footToolbar($footToolbar), - set::footPager( - usePager() - ) + set::footPager(usePager()) ); render();