Skip to content

Commit

Permalink
fix #25
Browse files Browse the repository at this point in the history
  • Loading branch information
creecros committed Oct 6, 2023
1 parent d415ddd commit 1c07802
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Action/TaskEmailDue.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ public function doAction(array $data)

if ($send_to == 'creator' || $send_to == 'both') {
foreach ($data['tasks'] as $task) {
$project = $this->projectModel->getById($task['project_id']);

// Only email for active projects
if ($project['is_active'] && $task['column_id'] != $this->getParam('column_id')) {
// Only email is enough time has passed since the last one was sent
Expand Down

0 comments on commit 1c07802

Please sign in to comment.