From 465d3c64517425ae657202ae56841519742ea1cb Mon Sep 17 00:00:00 2001 From: zhengrunyu Date: Tue, 8 Mar 2022 16:33:46 +0800 Subject: [PATCH] *Fix bug. --- api/v1/entries/bugs.php | 2 +- api/v1/entries/productplans.php | 1 + api/v1/entries/stories.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/api/v1/entries/bugs.php b/api/v1/entries/bugs.php index fae5a41a41..ef00d94398 100644 --- a/api/v1/entries/bugs.php +++ b/api/v1/entries/bugs.php @@ -79,7 +79,7 @@ class bugsEntry extends entry if(!$productID and isset($this->requestBody->product)) $productID = $this->requestBody->product; if(!$productID) return $this->sendError(400, 'Need product id.'); - $fields = 'title,project,execution,openedBuild,assignedTo,pri,severity,type,story,task'; + $fields = 'title,project,execution,openedBuild,assignedTo,pri,severity,type,story,task,mailto,keywords,steps'; $this->batchSetPost($fields); $this->setPost('product', $productID); diff --git a/api/v1/entries/productplans.php b/api/v1/entries/productplans.php index f56cf3ae96..e903903f4c 100644 --- a/api/v1/entries/productplans.php +++ b/api/v1/entries/productplans.php @@ -36,6 +36,7 @@ class productplansEntry extends entry foreach($plans as $plan) { + $plan->name = $plan->title; if($plan->parent > 0 and isset($result[$plan->parent])) { $parentPlan = $result[$plan->parent]; diff --git a/api/v1/entries/stories.php b/api/v1/entries/stories.php index af5333b2bc..fcffda17ca 100644 --- a/api/v1/entries/stories.php +++ b/api/v1/entries/stories.php @@ -35,6 +35,7 @@ class storiesEntry extends entry $result = array(); foreach($stories as $story) { + $story->name =$story->title; if(isset($story->children)) $story->children = array_values((array)$story->children); $result[] = $this->format($story, 'openedBy:user,openedDate:time,assignedTo:user,assignedDate:time,reviewedBy:user,reviewedDate:time,lastEditedBy:user,lastEditedDate:time,closedBy:user,closedDate:time,deleted:bool,mailto:userList'); }