From 46661419f6eda3f6262f7159fa4d5c7e3e73e49f Mon Sep 17 00:00:00 2001 From: Yagami Date: Fri, 3 Mar 2023 09:59:15 +0800 Subject: [PATCH] * Code for stage path. --- module/execution/model.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module/execution/model.php b/module/execution/model.php index 01eed079a3..be8ebe0187 100755 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -5164,7 +5164,13 @@ class executionModel extends model } else { - $path = str_replace(",$execution->project,", ',', $execution->path); + if(strpos($execution->path, ",$execution->project,") !== false) + { + $path = explode(',', trim($execution->path, ',')); + $path = array_slice($path, array_search($execution->project, $path) + 1); + $path = implode(',', $path); + } + $trClass = 'table-nest-hide'; $trAttrs = "data-id={$execution->id} data-parent={$execution->parent} data-status={$execution->status}"; $trAttrs .= " data-nest-parent='$execution->parent' data-order='$execution->order' data-nest-path='$path'";