From 586443e13c9c7c7aa6ba0532f1db4b552ea6c9f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rostislav=20Wolny=CC=81?= Date: Tue, 26 Oct 2021 08:54:58 +0200 Subject: [PATCH] Fix scheduling tasks on activation [MAILPOET-2686] Co-authored-by: brezocordero --- lib/Config/Populator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Config/Populator.php b/lib/Config/Populator.php index defa4c611a..a17a6ccbcd 100644 --- a/lib/Config/Populator.php +++ b/lib/Config/Populator.php @@ -663,7 +663,7 @@ class Populator { private function scheduleTask($type, $datetime) { $task = ScheduledTask::where('type', $type) - ->whereRaw('status = ? OR status IS NULL', [ScheduledTask::STATUS_SCHEDULED]) + ->whereRaw('(status = ? OR status IS NULL)', [ScheduledTask::STATUS_SCHEDULED]) ->findOne(); if ($task) { return true;