Skip to content

Commit

Permalink
pkp/pkp-lib#5502 Change Submission Language
Browse files Browse the repository at this point in the history
  • Loading branch information
jyhein committed Aug 24, 2023
1 parent 1ac4515 commit 21b60da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/publication/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function add(Publication $publication): int
}

$supportedLocales = $submissionContext->getSupportedSubmissionLocales();
in_array($primaryLocale = $submission->getData('locale'), $allowedLocales) || array_push($allowedLocales, $primaryLocale);
in_array($primaryLocale = $submission->getData('locale'), $supportedLocales) || array_push($supportedLocales, $primaryLocale);
foreach ($supportedLocales as $localeKey) {
if (!array_key_exists($localeKey, $publication->getData('coverImage'))) {
continue;
Expand Down

0 comments on commit 21b60da

Please sign in to comment.