From deb01f0985623cd53c7615382b7cbdf847c49106 Mon Sep 17 00:00:00 2001 From: JediKev <kevin@enhancesoft.com> Date: Mon, 22 Apr 2019 13:25:44 -0500 Subject: [PATCH] issue: Task EstDueDate This addresses an issue where having the `%{task.due_date}` variable in a Task alert template whilst creating a Task with an Assignee causes a fatal error in the backend leaving the Create Task modal spinning forever. This is due to the `getVar()` method for Tasks where the `due_date` case references a non-existing method. This updates the referenced method to an existing method so it gets the correct value and does not cause a fatal error. --- include/class.task.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.task.php b/include/class.task.php index fe1e71921..acefedda7 100644 --- a/include/class.task.php +++ b/include/class.task.php @@ -1037,7 +1037,7 @@ class Task extends TaskModel implements RestrictedAccess, Threadable { case 'create_date': return new FormattedDate($this->getCreateDate()); case 'due_date': - if ($due = $this->getEstDueDate()) + if ($due = $this->getDueDate()) return new FormattedDate($due); break; case 'close_date': -- GitLab