Fix bug: overdue tasks email notification
This commit is contained in:
@@ -69,7 +69,7 @@ class Task extends Base
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getTasksDue()
|
||||
public function getOverdueTasks()
|
||||
{
|
||||
$tasks = $this->db->table(self::TABLE)
|
||||
->columns(
|
||||
@@ -85,7 +85,7 @@ class Task extends Base
|
||||
->join(User::TABLE, 'id', 'owner_id')
|
||||
->eq(Project::TABLE.'.is_active', 1)
|
||||
->eq(self::TABLE.'.is_active', 1)
|
||||
->neq(self::TABLE.'.date_due', '')
|
||||
->neq(self::TABLE.'.date_due', 0)
|
||||
->lte(self::TABLE.'.date_due', mktime(23, 59, 59))
|
||||
->findAll();
|
||||
|
||||
|
||||
@@ -2,7 +2,13 @@
|
||||
|
||||
<ul>
|
||||
<?php foreach ($tasks as $task): ?>
|
||||
<li>(<strong>#<?= $task['id'] ?></strong>) <?= Helper\escape($task['title']) ?> (<strong><?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?></strong>)</li>
|
||||
<li>
|
||||
(<strong>#<?= $task['id'] ?></strong>)
|
||||
<?= Helper\escape($task['title']) ?>
|
||||
<?php if ($task['assignee_username']): ?>
|
||||
(<strong><?= t('Assigned to %s', $task['assignee_name'] ?: $task['assignee_username']) ?></strong>)
|
||||
<?php endif ?>
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user