From 365a048084681306832147d96f71a142d01f115d Mon Sep 17 00:00:00 2001 From: zhengrunyu Date: Wed, 6 Apr 2022 09:38:07 +0800 Subject: [PATCH] * Change api for edit story. --- api/v1/entries/story.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/v1/entries/story.php b/api/v1/entries/story.php index f154c54e8e..4273caf022 100644 --- a/api/v1/entries/story.php +++ b/api/v1/entries/story.php @@ -95,14 +95,12 @@ class storyEntry extends Entry $oldStory = $this->loadModel('story')->getByID($storyID); /* Set $_POST variables. */ - $fields = 'title,product,reviewer,type,plan,module,source,sourceNote,category,pri,estimate,mailto,keywords,uid,stage,notifyEmail'; + $fields = 'title,product,parent,reviewer,type,plan,module,source,sourceNote,category,pri,estimate,mailto,keywords,uid,stage,notifyEmail'; $this->batchSetPost($fields, $oldStory); - $this->setPost('parent', 0); $control = $this->loadController('story', 'edit'); $control->edit($storyID); - $data = $this->getData(); if(isset($data->status) and $data->status == 'fail') return $this->sendError(400, $data->message);