From 452fdacd5794abd9f9748f776ab785010d40c9f7 Mon Sep 17 00:00:00 2001 From: Matthew Toseland Date: Tue, 17 Dec 2024 21:04:17 +0000 Subject: [PATCH] Fix: Typo broke background sync does not work because of a typo (wrong null coalescing operator). So on our existing installation, we get an undefined array key error here. --- lib/BackgroundJob/SyncSubmissionsWithLinkedFileJob.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/BackgroundJob/SyncSubmissionsWithLinkedFileJob.php b/lib/BackgroundJob/SyncSubmissionsWithLinkedFileJob.php index 254fefe62..a1632b205 100644 --- a/lib/BackgroundJob/SyncSubmissionsWithLinkedFileJob.php +++ b/lib/BackgroundJob/SyncSubmissionsWithLinkedFileJob.php @@ -42,7 +42,7 @@ public function __construct( public function run($argument): void { $oldUser = $this->userSession->getUser(); $formId = $argument['form_id']; - $attempt = $argument['attempt'] ?: 1; + $attempt = $argument['attempt'] ?? 1; try { $form = $this->formMapper->findById($formId);