* Fix bug 21065.

This commit is contained in:
zhengrunyu
2022-03-30 10:01:54 +08:00
committed by hufangzhou
parent b118024249
commit d3b31cae7c
3 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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);
+3
View File
@@ -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;
+1 -1
View File
@@ -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);