This commit is contained in:
holan20180123
2021-02-08 10:53:11 +08:00
parent 4bc4aac3be
commit a76ae26523
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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())
{
+3 -1
View File
@@ -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;