* merge in db and adjust code.

This commit is contained in:
wangyidong
2016-03-04 14:50:48 +08:00
parent 0d47f23a19
commit 7603866e92
2 changed files with 2 additions and 0 deletions

View File

@@ -607,6 +607,7 @@ CREATE TABLE IF NOT EXISTS `zt_testtask` (
`pri` tinyint(3) unsigned NOT NULL default '0',
`begin` date NOT NULL,
`end` date NOT NULL,
`mailto` varchar(255) NOT NULL default '',
`desc` text NOT NULL,
`report` text NOT NULL,
`status` enum('blocked','doing','wait','done') NOT NULL DEFAULT 'wait',

View File

@@ -158,6 +158,7 @@ class report extends control
*/
public function remind()
{
$bugs = $tasks = $todos = $testTasks = array();
if($this->config->report->dailyreminder->bug) $bugs = $this->report->getUserBugs();
if($this->config->report->dailyreminder->task) $tasks = $this->report->getUserTasks();
if($this->config->report->dailyreminder->todo) $todos = $this->report->getUserTodos();