From 12fa48f25075c4a1d0c8a2343379f1092925d027 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Thu, 4 Jul 2024 05:26:08 +0000 Subject: [PATCH] * [bug] fix code error. --- module/tree/model.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/tree/model.php b/module/tree/model.php index 2d42d172fe..297fd85f07 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -533,9 +533,10 @@ class treeModel extends model if($productNum > 1) { $menuItem = new stdclass(); - $menuItem->id = $id; - $menuItem->name = $product; - $menuItem->url = helper::createLink('execution', 'task', "executionID=$rootID&status=byProduct&praram=$id"); + $menuItem->id = $id; + $menuItem->name = $product; + $menuItem->parent = 0; + $menuItem->url = helper::createLink('execution', 'task', "executionID=$rootID&status=byProduct&praram=$id"); $menu[] = $menuItem; }