* Finish task #4480,4490

This commit is contained in:
liugang
2018-06-21 13:43:20 +08:00
parent 2341927a79
commit baf5dffd79
4 changed files with 21 additions and 22 deletions
+10 -2
View File
@@ -495,11 +495,19 @@ class block extends control
*/
public function printTodoBlock()
{
$uri = $this->server->http_referer;
$limit = $this->viewType == 'json' ? 0 : (int)$this->params->num;
$todos = $this->loadModel('todo')->getList('all', $this->app->user->account, 'wait, doing', $limit, $pager = null, $orderBy = 'date, begin');
$uri = $this->server->http_referer;
$this->session->set('todoList', $uri);
$this->session->set('bugList', $uri);
$this->session->set('taskList', $uri);
$this->view->todos = $this->loadModel('todo')->getList('all', $this->app->user->account, 'wait, doing', $this->viewType == 'json' ? 0 : (int)$this->params->num);
foreach($todos as $key => $todo)
{
if($todo->date == '2030-01-01') unset($todos[$key]);
}
$this->view->todos = $todos;
}
/**