From 14e1f63e18b07f0269c3bf1bc08293a8f014298e Mon Sep 17 00:00:00 2001 From: simon <31130607+forgive38@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:58:22 +0200 Subject: [PATCH] resolve new discussion error refs https://github.com/pkp/pkp-lib/issues/10385 (#10386) Co-authored-by: simon --- controllers/grid/queries/QueriesGridHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/grid/queries/QueriesGridHandler.php b/controllers/grid/queries/QueriesGridHandler.php index a780f0ec867..caedd3b2524 100644 --- a/controllers/grid/queries/QueriesGridHandler.php +++ b/controllers/grid/queries/QueriesGridHandler.php @@ -672,7 +672,7 @@ public function updateQuery($args, $request) $user->getId(), $request->getContext()->getId() ); - if (in_array(Notification::NOTIFICATION_TYPE_NEW_QUERY, $notificationSubscriptionSettings)) { + if (!$notification || in_array(Notification::NOTIFICATION_TYPE_NEW_QUERY, $notificationSubscriptionSettings)) { continue; }