From a76ae26523f28648ab6a290290c221cc5a2b49b3 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Mon, 8 Feb 2021 10:53:11 +0800 Subject: [PATCH] * Fix bug #10966. --- module/story/control.php | 2 +- module/story/model.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/story/control.php b/module/story/control.php index d4b443fd32..b527f09ddf 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1189,7 +1189,7 @@ class story extends control $response['result'] = 'success'; $response['message'] = $this->lang->story->successToTask; - $this->story->batchToTask($projectID); + $this->story->batchToTask($projectID, $this->session->PRJ); if(dao::isError()) { diff --git a/module/story/model.php b/module/story/model.php index 9ad5f1c911..84076e7e6e 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1547,10 +1547,11 @@ class storyModel extends model * Batch to task. * * @param int $projectID + * @param int $PRJID * @access public * @return bool */ - public function batchToTask($projectID) + public function batchToTask($projectID, $PRJID = 0) { /* load Module and get the data from the post and get the current time. */ $this->loadModel('action'); @@ -1581,6 +1582,7 @@ class storyModel extends model $task = new stdclass(); $task->project = $projectID; + $task->PRJ = $PRJID; $task->name = $story->title; $task->story = $story->id; $task->type = $data->type;