*Fix bug.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user