From 448522085021eb00c789c687eabdf79b891fe9f8 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 18 Nov 2025 15:55:59 +0800 Subject: [PATCH 1/3] * [bug#67312,done,0.1h,0h] Fix tutorial mode create testtask error. --- module/testtask/zen.php | 2 +- module/tutorial/model.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/testtask/zen.php b/module/testtask/zen.php index 9d7124f8d1..ba0b2c03a9 100644 --- a/module/testtask/zen.php +++ b/module/testtask/zen.php @@ -402,7 +402,7 @@ class testtaskZen extends testtask /* 如果测试单所属产品在产品键值对中不存在,将其加入。*/ /* Prepare the product key-value pairs. */ - $product = $this->loadModel('product')->fetchByID($productID); + $product = $this->loadModel('product')->getByID($productID); if(!isset($this->products[$productID]) && !empty($product)) $this->products[$productID] = $product->name; $this->view->title = $this->products[$productID] . $this->lang->hyphen . $this->lang->testtask->create; diff --git a/module/tutorial/model.php b/module/tutorial/model.php index 79597ae2e7..b35359a843 100644 --- a/module/tutorial/model.php +++ b/module/tutorial/model.php @@ -1171,6 +1171,7 @@ class tutorialModel extends model $testtask->name = 'Test testtask'; $testtask->execution = 3; $testtask->build = 1; + $testtask->joint = 0; $testtask->type = ''; $testtask->owner = ''; $testtask->pri = 3; From e6bd1568dfd8f3a986258b5cda4576448edd2265 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 18 Nov 2025 16:05:36 +0800 Subject: [PATCH 2/3] * [bug#67311,done,0.3h,0h] Fix execution testtask field order error. --- module/execution/ui/testtask.html.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/execution/ui/testtask.html.php b/module/execution/ui/testtask.html.php index 0ee190b751..9fb2966c20 100644 --- a/module/execution/ui/testtask.html.php +++ b/module/execution/ui/testtask.html.php @@ -75,14 +75,14 @@ dtable set::plugins(array('cellspan')), set::onRenderCell(jsRaw('window.onRenderCell')), set::orderBy($orderBy), - set::sortLink(createLink('execution', 'testtask', "executionID={$execution->id}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&page={$pager->pageID}")), + set::sortLink(createLink('execution', 'testtask', "executionID={$execution->id}&productID={$productID}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&page={$pager->pageID}")), set::getCellSpan(jsRaw('window.getCellSpan')), set::footToolbar($footToolbar), set::footPager(usePager(array ( 'recPerPage' => $pager->recPerPage, 'recTotal' => $pager->recTotal, - 'linkCreator' => helper::createLink('execution', 'testtask', "executionID={$execution->id}&orderBy={$orderBy}&recTotal={$pager->recTotal}&recPerPage={recPerPage}&page={page}") + 'linkCreator' => helper::createLink('execution', 'testtask', "executionID={$execution->id}&productID={$productID}&orderBy={$orderBy}&recTotal={$pager->recTotal}&recPerPage={recPerPage}&page={page}") ))), set::checkInfo(jsRaw('function(checkedIDList){return window.setStatistics(this, checkedIDList);}')), set::emptyTip($lang->testtask->noTesttask), From 0c7a3a822b9db112e51ff2c529b1ca968348d576 Mon Sep 17 00:00:00 2001 From: wangyuting Date: Tue, 18 Nov 2025 16:11:35 +0800 Subject: [PATCH 3/3] * [bug#66841,done,0.1h,0h] Fix story empty docs. --- module/tutorial/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/tutorial/model.php b/module/tutorial/model.php index b35359a843..4341c9e95f 100644 --- a/module/tutorial/model.php +++ b/module/tutorial/model.php @@ -393,6 +393,8 @@ class tutorialModel extends model $story->spec = ''; $story->verify = ''; $story->files = array(); + $story->docs = ''; + $story->docVersions = ''; return $story; }