From 6207932bac6c7817974a7657f4c31f3925ff7251 Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Thu, 21 Nov 2024 11:57:13 -0400 Subject: [PATCH] pkp/pkp-lib#10362 include editorName when logging an editorial decision --- classes/decision/Repository.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/classes/decision/Repository.php b/classes/decision/Repository.php index f811aad4c22..767f7c9a479 100644 --- a/classes/decision/Repository.php +++ b/classes/decision/Repository.php @@ -2,8 +2,8 @@ /** * @file classes/decision/Repository.php * - * Copyright (c) 2014-2022 Simon Fraser University - * Copyright (c) 2000-2022 John Willinsky + * Copyright (c) 2014-2024 Simon Fraser University + * Copyright (c) 2000-2024 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * @class Repository @@ -237,6 +237,7 @@ public function add(Decision $decision): int ? PKPSubmissionEventLogEntry::SUBMISSION_LOG_EDITOR_RECOMMENDATION : PKPSubmissionEventLogEntry::SUBMISSION_LOG_EDITOR_DECISION, 'userId' => Validation::loggedInAs() ?? $this->request->getUser()?->getId(), + 'editorName' => $editor->getFullName(), 'message' => $decisionType->getLog(), 'isTranslated' => false, 'dateLogged' => Core::getCurrentDate() @@ -378,7 +379,7 @@ abstract public function getDecisionTypes(): Collection; abstract public function getDeclineDecisionTypes(): array; /** - * Get a list of the decision types that a recommending user is + * Get a list of the decision types that a recommending user is * allowed to make given a submission stage id. * * @return DecisionType[]