From a296ba5b18487d312acca2513d461a210a460fae Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 3 Jan 2016 16:43:13 -0500 Subject: Improve Automatic Actions plugin api --- app/Action/TaskUpdateStartDate.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/Action/TaskUpdateStartDate.php') diff --git a/app/Action/TaskUpdateStartDate.php b/app/Action/TaskUpdateStartDate.php index 4cd548af..011a5baf 100644 --- a/app/Action/TaskUpdateStartDate.php +++ b/app/Action/TaskUpdateStartDate.php @@ -12,6 +12,17 @@ use Kanboard\Model\Task; */ class TaskUpdateStartDate extends Base { + /** + * Get automatic action description + * + * @access public + * @return string + */ + public function getDescription() + { + return t('Automatically update the start date'); + } + /** * Get the list of compatible events * -- cgit v1.2.3 From 446a7ac6455f00efaac7c878def68fe62d0e9f19 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 17 Jan 2016 17:31:12 -0500 Subject: Do not fire events when using automatic action TaskUpdateStartDate --- app/Action/TaskUpdateStartDate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Action/TaskUpdateStartDate.php') diff --git a/app/Action/TaskUpdateStartDate.php b/app/Action/TaskUpdateStartDate.php index 011a5baf..e5cea01b 100644 --- a/app/Action/TaskUpdateStartDate.php +++ b/app/Action/TaskUpdateStartDate.php @@ -77,7 +77,7 @@ class TaskUpdateStartDate extends Base 'date_started' => time(), ); - return $this->taskModification->update($values); + return $this->taskModification->update($values, false); } /** -- cgit v1.2.3