From c509d9796c045e1f6fbd79550ba5657e602e3f3b Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 1 Sep 2025 01:24:47 +0000 Subject: [PATCH 1/3] * [bug#64938] Fix the bug of tutorial. --- lib/zin/wg/header/v1.php | 2 +- lib/zin/wg/navbar/v1.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/zin/wg/header/v1.php b/lib/zin/wg/header/v1.php index caf78edf1e..f7b48f7330 100644 --- a/lib/zin/wg/header/v1.php +++ b/lib/zin/wg/header/v1.php @@ -365,7 +365,7 @@ class header extends wg { $params = "model=kanban"; } - else if(!defined('TUTORIAL')) + else if(!commonModel::isTutorialMode()) { $params = "programID=0&from=global"; $createMethod = 'createGuide'; diff --git a/lib/zin/wg/navbar/v1.php b/lib/zin/wg/navbar/v1.php index 4a3a0ace09..8318fe8e4d 100644 --- a/lib/zin/wg/navbar/v1.php +++ b/lib/zin/wg/navbar/v1.php @@ -29,7 +29,7 @@ class navbar extends wg protected function getExecutionMoreItem($executionID) { - if(defined('TUTORIAL')) return; + if(commonModel::isTutorialMode()) return; global $lang, $app; @@ -106,7 +106,8 @@ class navbar extends wg protected function getAppBtnItem() { - if(defined('TUTORIAL')) return; + if(commonModel::isTutorialMode()) return; + global $app, $config, $lang; $condition = ''; From 5682b4428832c47087d4e4b595ded81e5ed4bf2a Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 1 Sep 2025 01:36:25 +0000 Subject: [PATCH 2/3] * [misc] Optimate code when sonar tip. --- lib/zin/wg/header/v1.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zin/wg/header/v1.php b/lib/zin/wg/header/v1.php index f7b48f7330..bd3092cd7d 100644 --- a/lib/zin/wg/header/v1.php +++ b/lib/zin/wg/header/v1.php @@ -365,7 +365,7 @@ class header extends wg { $params = "model=kanban"; } - else if(!commonModel::isTutorialMode()) + elseif(!commonModel::isTutorialMode()) { $params = "programID=0&from=global"; $createMethod = 'createGuide'; From 0513d7f6723c5bdd5e47efb606e9bcbe4e496b80 Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Mon, 1 Sep 2025 02:26:51 +0000 Subject: [PATCH 3/3] * [bug#65057] Fix the bug of doc insert product release. --- module/doc/ui/zentaolist.html.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/doc/ui/zentaolist.html.php b/module/doc/ui/zentaolist.html.php index 56caf69ffa..a8a3cfbade 100644 --- a/module/doc/ui/zentaolist.html.php +++ b/module/doc/ui/zentaolist.html.php @@ -102,6 +102,7 @@ div set::localPager(), set::footPager($pagerSetting), set::footer(array('flex', 'pager')), + $type == 'productRelease' ? set::rowKey('rowID') : null, $type == 'productRelease' ? set::plugins(array('cellspan')) : null, $type == 'productRelease' ? set::getCellSpan(jsRaw('window.getCellSpan')) : null ) : null,