From 630f4ee780f3a9240ae9296e73f7518f21ae23ae Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 12 May 2017 15:35:29 -0400 Subject: TaskAssignColorOnDueDateAction: update task only when necessary --- app/Action/TaskAssignColorOnDueDate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Action/TaskAssignColorOnDueDate.php') diff --git a/app/Action/TaskAssignColorOnDueDate.php b/app/Action/TaskAssignColorOnDueDate.php index 06b70a18..791f0cff 100644 --- a/app/Action/TaskAssignColorOnDueDate.php +++ b/app/Action/TaskAssignColorOnDueDate.php @@ -74,7 +74,7 @@ class TaskAssignColorOnDueDate extends Base $results = array(); foreach ($data['tasks'] as $task) { - if ($task['date_due'] <= time() && $task['date_due'] > 0) { + if ($task['date_due'] <= time() && $task['date_due'] > 0 && $task['color_id'] != $this->getParam('color_id')) { $values = array( 'id' => $task['id'], 'color_id' => $this->getParam('color_id'), -- cgit v1.2.3