* fix bug.

This commit is contained in:
wangyidong
2020-05-26 09:14:31 +08:00
parent 5d5dd33ac5
commit fd0da30d09
10 changed files with 42 additions and 12 deletions
+3 -2
View File
@@ -322,7 +322,7 @@ class taskModel extends model
->checkIF($task->estimate != '', 'estimate', 'float')
->exec();
if(dao::isError()) die(js::error(dao::getError()));
if(dao::isError()) return false;
$taskID = $this->dao->lastInsertID();
$childTasks .= $taskID . ',';
@@ -2688,7 +2688,8 @@ class taskModel extends model
if($id == 'status') $class .= ' task-' . $task->status;
if($id == 'id') $class .= ' cell-id';
if($id == 'name') $class .= ' text-left';
if($id == 'deadline' and isset($task->delay)) $class .= ' text-center delayed';
if($id == 'deadline') $class .= ' text-center';
if($id == 'deadline' and isset($task->delay)) $class .= ' delayed';
if($id == 'assignedTo') $class .= ' has-btn text-left';
if(strpos('progress', $id) !== false) $class .= ' text-right';