Skip to content

Commit

Permalink
Add context title to downloaded review PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Dec 13, 2024
1 parent 901b8b9 commit 731d291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1/reviews/PKPReviewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ protected function generatePDF(bool $authorFriendly): int
$templateMgr->assign(
[
'cleanTitle' => $cleanTitle,
'contextTitle' => $request->getContext()->getLocalizedTitle(),
'contextTitle' => $request->getContext()->getLocalizedName(),
'reviewerName' => $reviewerName,
'dateCompleted' => $reviewAssignment->getDateCompleted(),
'recommendation' => $reviewAssignment->getLocalizedRecommendation(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
</style>
</head>
<body>
<div class="section context-title">{$contextTitle|escape}</div>
<div class="section">
<h2>{$cleanTitle}</h2>
</div>
Expand Down

0 comments on commit 731d291

Please sign in to comment.