Skip to content

Commit

Permalink
Merge pull request pkp#10806 from kaitlinnewson/10805-main
Browse files Browse the repository at this point in the history
pkp#10805 update removed getSubmissionLocale function
  • Loading branch information
bozana authored Jan 16, 2025
2 parents 1b31467 + d57bfd5 commit 2c24f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/author/Author.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getLocalizedFamilyName()
return $this->getFamilyName($locale);
}
// Fall back on the submission locale.
return $this->getFamilyName($this->getSubmissionLocale());
return $this->getFamilyName($this->getData('submissionLocale'));
}

//
Expand Down
2 changes: 1 addition & 1 deletion schemas/author.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"default": true,
"apiSummary": true
},
"locale": {
"submissionLocale": {
"type": "string",
"description": "The primary locale of the submission this author is attached to. This locale is used as the fallback when a language is missing from a multilingual property.",
"apiSummary": true,
Expand Down

0 comments on commit 2c24f72

Please sign in to comment.