From 9969445ee96ef7e84aa8ef1ddcd5f9312b7db2fb Mon Sep 17 00:00:00 2001 From: liyang Date: Thu, 25 Jul 2024 16:25:33 +0800 Subject: [PATCH] * [task#124018] Fix show branch. --- module/repo/control.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/module/repo/control.php b/module/repo/control.php index 01b2f27326..7faba8e8a7 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -1888,14 +1888,14 @@ class repo extends control list($order, $sort) = explode('_', $orderBy); $orderList = array(); $keyword = (string)$this->post->keyword; - foreach($branchList as $index => $branch) + foreach($branchList as $index => $orderBranch) { - if($keyword && strpos($branch->name, $keyword) === false) + if($keyword && strpos($orderBranch->name, $keyword) === false) { unset($branchList[$index]); continue; } - $orderList[] = $branch->$order; + $orderList[] = $orderBranch->$order; } if($orderList) array_multisort($orderList, $sort == 'desc' ? SORT_DESC : SORT_ASC, $branchList);