Skip to content

Commit

Permalink
pkp/pkp-ib#10670 Update urls for new 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 72bbffa commit 538590b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/payment/ojs/OJSPaymentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function createQueuedPayment($request, $type, $userId, $assocId, $amount,
if ($submission->getData('submissionProgress')) {
$payment->setRequestUrl($dispatcher->url($request, Application::ROUTE_PAGE, null, 'submission', null, null, ['id' => $assocId]));
} else {
$payment->setRequestUrl($dispatcher->url($request, Application::ROUTE_PAGE, null, 'authorDashboard', 'submission', [$submission->getId()]));
$payment->setRequestUrl($dispatcher->url($request, Application::ROUTE_PAGE, null, 'dashboard', 'mySubmissions', null, ['workflowSubmissionId' => $submission->getId()]));
}
break;
case self::PAYMENT_TYPE_MEMBERSHIP: // Deprecated
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/toc/TocGridRow.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function initialize($request, $template = null)
new LinkAction(
'workflow',
new RedirectAction(
$dispatcher->url($request, PKPApplication::ROUTE_PAGE, null, 'workflow', 'access', [$this->getId()])
$dispatcher->url($request, PKPApplication::ROUTE_PAGE, null, 'dashboard', 'editorial', null, ['workflowSubmissionId' => $this->getId()])
),
__('submission.submission'),
'information'
Expand Down
1 change: 1 addition & 0 deletions pages/dashboard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

switch ($op) {
case 'index':
return new APP\pages\dashboard\DashboardHandlerNext();
case 'editorial':
return new APP\pages\dashboard\DashboardHandlerNext(PKP\pages\dashboard\DashboardPage::EditorialDashboard);
case 'mySubmissions':
Expand Down

0 comments on commit 538590b

Please sign in to comment.