* fix bug.

This commit is contained in:
wangyidong
2020-02-05 17:30:21 +08:00
parent 58f5936bae
commit 616d01b015
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ class taskModel extends model
/* Check duplicate task. */
if($task->type != 'affair')
{
$result = $this->loadModel('common')->removeDuplicate('task', $task, "project=$projectID and story=$task->story");
$result = $this->loadModel('common')->removeDuplicate('task', $task, "project=$projectID and story=" . (int)$task->story);
if($result['stop'])
{
$taskIdList[$assignedTo] = array('status' => 'exists', 'id' => $result['duplicate']);