From e001f2a00b9561840818907814fab96178baf95b Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 2 Feb 2023 09:42:45 +0800 Subject: [PATCH 4/5] * Fix bug #25334. --- extension/lite/task/ext/view/create.html.php | 2 +- module/story/control.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/lite/task/ext/view/create.html.php b/extension/lite/task/ext/view/create.html.php index 87eb3f1dcf..0e8522dda4 100644 --- a/extension/lite/task/ext/view/create.html.php +++ b/extension/lite/task/ext/view/create.html.php @@ -103,7 +103,7 @@ task->story;?> - task->noticeLinkStory, html::a($this->createLink('story', 'create', "productID=$productID&branch=0&moduleID=0&storyID=0&projectID=$projectID&bugID=0&planID=0&todoID=0&extra=&type=story&_single"), $lang->execution->linkStory, '_blank', 'class="text-primary"'), html::a("javascript:loadStories($execution->id)", $lang->refresh, '', 'class="text-primary"'));?> + task->noticeLinkStory, html::a($this->createLink('story', 'create', "productID=$productID&branch=0&moduleID=0&storyID=0&projectID=$projectID&bugID=0&planID=0&todoID=0&extra=&type=story&_single"), $lang->execution->linkStory, '', 'class="text-primary"'), html::a("javascript:loadStories($execution->id)", $lang->refresh, '', 'class="text-primary"'));?>
story, "class='form-control chosen' onchange='setStoryRelated();'");?> preview;?> diff --git a/module/story/control.php b/module/story/control.php index db9c8bbf22..22dd66025d 100755 --- a/module/story/control.php +++ b/module/story/control.php @@ -476,7 +476,7 @@ class story extends control $this->view->URS = $storyType == 'story' ? $this->story->getProductStoryPairs($productID, $branch, $moduleIdList, 'changing,active,reviewing', 'id_desc', 0, '', 'requirement') : ''; $this->view->needReview = ($this->app->user->account == $product->PO or $objectID > 0 or $this->config->story->needReview == 0 or !$this->story->checkForceReview()) ? "checked='checked'" : ""; $this->view->type = $storyType; - $this->view->category = $category ? $category : 'feature'; + $this->view->category = !empty($category) ? $category : 'feature'; $this->display(); } From fe1f695c4362030ba6a004b34d4c2501df8c4a8b Mon Sep 17 00:00:00 2001 From: tanghucheng Date: Thu, 2 Feb 2023 10:01:24 +0800 Subject: [PATCH 5/5] * Fix bug #24998. --- extension/lite/project/ext/config/lite.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extension/lite/project/ext/config/lite.php b/extension/lite/project/ext/config/lite.php index 24640cf74b..c8c8530940 100644 --- a/extension/lite/project/ext/config/lite.php +++ b/extension/lite/project/ext/config/lite.php @@ -1,4 +1,9 @@ project->list->exportFields = 'id,code,name,status,PM,desc'; $config->project->datatable->defaultField = array('id', 'name', 'status', 'PM', 'begin', 'end', 'progress', 'actions'); + unset($config->project->datatable->fieldList['budget']); + +unset($config->project->search['fields']['hasProduct']); +unset($config->project->search['fields']['parent']); +unset($config->project->search['fields']['model']);