* Do not check dulplicate name When task name is empty.

This commit is contained in:
zhujinyong
2021-04-16 15:37:00 +08:00
parent 42f5badbc8
commit 0789d893a8
+1 -1
View File
@@ -79,7 +79,7 @@ class taskModel extends model
if($assignedTo) $task->assignedDate = helper::now();
/* Check duplicate task. */
if($task->type != 'affair')
if($task->type != 'affair' and $task->name)
{
$result = $this->loadModel('common')->removeDuplicate('task', $task, "execution={$executionID} and story=" . (int)$task->story);
if($result['stop'])