From 080d34ee785f340c6d68fb631ebe84bca1ce979e Mon Sep 17 00:00:00 2001 From: Taslan Graham Date: Mon, 7 Oct 2024 10:42:36 -0500 Subject: [PATCH 1/2] pkp/pkp-lib#10508 Apply getLocalizedForm method to TitleAbstractForm form --- api/v1/submissions/SubmissionController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/v1/submissions/SubmissionController.php b/api/v1/submissions/SubmissionController.php index 9e99ae03c3..f9664efd9f 100644 --- a/api/v1/submissions/SubmissionController.php +++ b/api/v1/submissions/SubmissionController.php @@ -186,6 +186,7 @@ protected function getPublicationTitleAbstractForm(Request $illuminateRequest): $section = Repo::section()->get($publication->getData('sectionId'), $context->getId()); $locales = $this->getPublicationFormLocales($context, $submission); + $submissionLocale = $submission->getData('locale'); $titleAbstract = new TitleAbstractForm( $publicationApiUrl, @@ -194,7 +195,7 @@ protected function getPublicationTitleAbstractForm(Request $illuminateRequest): $section->getData('wordCount'), !$section->getData('abstractsNotRequired') ); - return response()->json($titleAbstract->getConfig(), Response::HTTP_OK); + return response()->json($this->getLocalizedForm($titleAbstract, $submissionLocale, $locales), Response::HTTP_OK); } /** From ef723b2d57047bb071f1860b65073db928a8ed27 Mon Sep 17 00:00:00 2001 From: Taslan Graham Date: Mon, 7 Oct 2024 10:44:04 -0500 Subject: [PATCH 2/2] Submodule update --- lib/pkp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pkp b/lib/pkp index 8753c00aa8..b065e8c674 160000 --- a/lib/pkp +++ b/lib/pkp @@ -1 +1 @@ -Subproject commit 8753c00aa8a4c2865746ac4af840a975d8fee74b +Subproject commit b065e8c6745c123e32b38cda163011a81015ce0a