From f3fe8c7d1d8d32f383e9ec7820b8a26953e0a792 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 23 Jun 2025 15:47:01 +0800 Subject: [PATCH] * [bug#63588,done,0.1h] set default branch. --- module/tree/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/tree/control.php b/module/tree/control.php index c0d32e3596..6f42b96547 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -243,7 +243,7 @@ class tree extends control if($showProduct) { $product = $this->loadModel('product')->getById($module->root); - $this->view->branches = $product->type != 'normal' ? $this->loadModel('branch')->getPairs($module->root, 'withClosed') : array(); + $this->view->branches = $product->type != 'normal' ? $this->loadModel('branch')->getPairs($module->root, 'withClosed') : array(0); $this->view->product = $product; $this->view->products = $this->product->getPairs('', $product->program); if($product->shadow) $showProduct = false;