summaryrefslogtreecommitdiff
path: root/app/Action
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2017-05-12 15:35:29 -0400
committerFrederic Guillot <fred@kanboard.net>2017-05-12 15:35:29 -0400
commit630f4ee780f3a9240ae9296e73f7518f21ae23ae (patch)
tree602cf050cb8bd7e0a7a2a5f547344d6e0d330c79 /app/Action
parentdaf39ee16aa15572b92f96bd7cc3705305a50b9d (diff)
TaskAssignColorOnDueDateAction: update task only when necessary
Diffstat (limited to 'app/Action')
-rw-r--r--app/Action/TaskAssignColorOnDueDate.php2
1 files changed, 1 insertions, 1 deletions
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'),