Skip to content

Commit

Permalink
pkp/pkp-lib#10670 Update to new urls for dashboard and workflow page
Browse files Browse the repository at this point in the history
  • Loading branch information
jardakotesovec committed Jan 8, 2025
1 parent 538590b commit f7fc0cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/reports/articles/ArticleReportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public function display($args, $request)
'keywords' => join(', ', $keywords[Locale::getLocale()] ?? $keywords[$submission->getData('locale')] ?? []),
'agencies' => join(', ', $agencies[Locale::getLocale()] ?? $agencies[$submission->getData('locale')] ?? []),
'status' => $submission->getData('status') == PKPSubmission::STATUS_QUEUED ? $this->getStageLabel($submission->getData('stageId')) : __($statusMap[$submission->getData('status')]),
'url' => $request->url(null, 'workflow', 'access', $submission->getId()),
'url' => $request->url(null, 'dashboard', 'editorial', null, ['workflowSubmissionId' => $submission->getId()]),
'doi' => $submission->getStoredPubId('doi'),
'dateSubmitted' => $submission->getData('dateSubmitted'),
'lastModified' => $submission->getLastModified(),
Expand Down
2 changes: 1 addition & 1 deletion templates/frontend/objects/article_details.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
{* Indicate if this is only a preview *}
{if $publication->getData('status') !== PKP\submission\PKPSubmission::STATUS_PUBLISHED}
<div class="cmp_notification notice">
{capture assign="submissionUrl"}{url page="workflow" op="access" path=$article->getId()}{/capture}
{capture assign="submissionUrl"}{url page="dashboard" op="editorial" workflowSubmissionId=$article->getId()}{/capture}
{translate key="submission.viewingPreview" url=$submissionUrl}
</div>
{* Notification that this is an old version *}
Expand Down

0 comments on commit f7fc0cb

Please sign in to comment.