diff --git a/api/v1/entries/bugclose.php b/api/v1/entries/bugclose.php index 17644f0afa..b2de387493 100644 --- a/api/v1/entries/bugclose.php +++ b/api/v1/entries/bugclose.php @@ -20,7 +20,7 @@ class bugCloseEntry extends Entry */ public function post($bugID) { - $story = $this->loadModel('bug')->getByID($bugID); + $bug = $this->loadModel('bug')->getByID($bugID); $fields = 'comment'; $this->batchSetPost($fields); diff --git a/api/v1/entries/product.php b/api/v1/entries/product.php index effecc6a9a..90476c5493 100644 --- a/api/v1/entries/product.php +++ b/api/v1/entries/product.php @@ -51,6 +51,9 @@ class productEntry extends Entry $product->modules = $data->data->tree; } break; + case 'execution': + $product->execution = $this->loadModel('product')->getExecutionPairsByProduct($productID); + break; case 'moduleoptionmenu': $product->moduleOptionMenu = $this->loadModel('tree')->getOptionMenu($productID, 'bug', 0, 'all'); break; diff --git a/api/v1/entries/story.php b/api/v1/entries/story.php index 79e3fe702f..f154c54e8e 100644 --- a/api/v1/entries/story.php +++ b/api/v1/entries/story.php @@ -95,7 +95,7 @@ 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'; + $fields = 'title,product,reviewer,type,plan,module,source,sourceNote,category,pri,estimate,mailto,keywords,uid,stage,notifyEmail'; $this->batchSetPost($fields, $oldStory); $this->setPost('parent', 0);