Skip to content

Commit

Permalink
pkp#10970 Expose submissionStageId for reviewAssignment for more accu…
Browse files Browse the repository at this point in the history
…rate messaging
  • Loading branch information
jardakotesovec committed Feb 26, 2025
1 parent 4e23daa commit 797b203
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions classes/submission/reviewAssignment/maps/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ protected function mapByProperties(array $props, ReviewAssignment $item, Submiss
case 'submissionLocale':
$output[$prop] = $submission->getData('locale');
break;
case 'submissionStageId':
$output[$prop] = $submission->getData('stageId');
break;
case 'publicationTitle':
$output[$prop] = $submission->getCurrentPublication()->getFullTitles('html');
break;
Expand Down
11 changes: 11 additions & 0 deletions schemas/reviewAssignment.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,17 @@
"description": "The ID of the submission associated with the assignment",
"apiSummary": true
},
"submissionStageId": {
"type": "integer",
"description": "The stage of the editorial workflow that this submission is currently in. One of the `WORKFLOW_STAGE_ID_` constants. Default is `WORKFLOW_STAGE_ID_SUBMISSION`.",
"apiSummary": true,
"default": 1,
"writeDisabledInApi": true,
"validation": [
"min:1",
"max:5"
]
},
"submissionLocale": {
"type": "string",
"description": "The locale of the submission associated with the assignment",
Expand Down

0 comments on commit 797b203

Please sign in to comment.