From c27a681d2bd71cdc463b559746be9c50cd80631d Mon Sep 17 00:00:00 2001 From: Vitalii Bezsheiko Date: Mon, 13 Jan 2025 21:19:05 +0200 Subject: [PATCH] pkp/pkp-lib#10480 Fix currentUserRecommendation in Submission schema --- classes/submission/maps/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/submission/maps/Schema.php b/classes/submission/maps/Schema.php index 68c355314e9..2266d66228a 100644 --- a/classes/submission/maps/Schema.php +++ b/classes/submission/maps/Schema.php @@ -716,7 +716,7 @@ protected function getPropertyStages(Enumerable $stageAssignments, Submission $s } // Set own recommendations of the current user - if ($currentUser == $decision->getData('editorId')) { + if ($currentUser->getId() == $decision->getData('editorId')) { $stages[$decision->getData('stageId')]['currentUserRecommendation'] = $recommendation; } }