* Finish task #45157.

This commit is contained in:
liumengyi
2021-11-29 10:37:56 +08:00
parent 2cfb89f727
commit 41d073f19d
2 changed files with 6 additions and 26 deletions
+4 -14
View File
@@ -598,14 +598,7 @@ class block extends control
unset($todos[$key]);
continue;
}
foreach($tasks as $task)
{
if($todo->type == 'task' and $todo->idvalue == $task->id)
{
unset($todos[$key]);
break;
}
}
if($todo->type == 'task' and isset($tasks[$todo->idvalue])) unset($todos[$key]);
}
$this->view->todos = $todos;
@@ -1740,13 +1733,10 @@ class block extends control
unset($objects[$key]);
continue;
}
foreach($tasks as $task)
if($todo->type == 'task' and isset($tasks[$todo->idvalue]))
{
if($todo->type == 'task' and $todo->idvalue == $task->id)
{
unset($objects[$key]);
break;
}
unset($objects[$key]);
continue;
}
$todo->begin = date::formatTime($todo->begin);