From 65a699e134ac30c4f5f33b6a107136762620e49d Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 10 Aug 2018 11:36:04 +0200 Subject: [PATCH] handle existing alarms in 17.1 like new ones with "keep" attribute set --- api/src/Asyncservice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Asyncservice.php b/api/src/Asyncservice.php index 446b3ab15c..abfc9a167b 100644 --- a/api/src/Asyncservice.php +++ b/api/src/Asyncservice.php @@ -482,7 +482,7 @@ class Asyncservice // update job before running it, to cope with jobs taking longer then async-frequency if (($job['next'] = $this->next_run($job['times'])) || // keep jobs with keep set (eg. calendar alarms) around - is_array($job['data']) && !empty($job['data']['keep'])) + is_array($job['data']) && (!empty($job['data']['keep']) || substr($job['id'], 0, 4) === 'cal:')) { if (!$job['next']) {