Skip to content

Commit

Permalink
pkp#8948 Fixed activity log on review cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
touhidurabir committed May 2, 2023
1 parent 2e69b0b commit 9372906
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion classes/decision/types/BackFromCopyediting.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function getDescription(?string $locale = null): string

public function getLog(): string
{
return __('editor.submission.decision.backFromCopyediting.log');
return 'editor.submission.decision.backFromCopyediting.log';
}

public function getCompletedLabel(): string
Expand Down
2 changes: 1 addition & 1 deletion classes/decision/types/CancelReviewRound.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getDescription(?string $locale = null): string

public function getLog(): string
{
return __('editor.submission.decision.cancelReviewRound.log');
return 'editor.submission.decision.cancelReviewRound.log';
}

public function getCompletedLabel(): string
Expand Down
2 changes: 1 addition & 1 deletion classes/submissionFile/Repository.php
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ public function getWorkflowStageId(SubmissionFile $submissionFile): ?int
$reviewRoundDao = DAORegistry::getDAO('ReviewRoundDAO'); /** @var ReviewRoundDAO $reviewRoundDao */
$reviewRound = $reviewRoundDao->getBySubmissionFileId($submissionFile->getId());

return $reviewRound->getStageId();
return $reviewRound?->getStageId();
}

if ($fileStage === SubmissionFile::SUBMISSION_FILE_QUERY) {
Expand Down

0 comments on commit 9372906

Please sign in to comment.