From 2bdf836bec0b629f4f70b2f6ed6e2c2b0babad3e Mon Sep 17 00:00:00 2001 From: Nate Wright Date: Thu, 3 Oct 2019 15:41:03 +0100 Subject: [PATCH] pkp/pkp-lib#5098 Restore call order for adding app-specific data to workflow --- pages/workflow/PKPWorkflowHandler.inc.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pages/workflow/PKPWorkflowHandler.inc.php b/pages/workflow/PKPWorkflowHandler.inc.php index 178e2be1a69..3fd2609caf4 100644 --- a/pages/workflow/PKPWorkflowHandler.inc.php +++ b/pages/workflow/PKPWorkflowHandler.inc.php @@ -333,6 +333,8 @@ function index($args, $request) { 'workflowStages' => $workflowStages, ]); + $this->setupIndex($request); + $templateMgr->display('workflow/workflow.tpl'); } @@ -623,6 +625,14 @@ function setupTemplate($request) { AppLocale::requireComponents(LOCALE_COMPONENT_PKP_ADMIN, LOCALE_COMPONENT_APP_ADMIN, LOCALE_COMPONENT_PKP_MANAGER, LOCALE_COMPONENT_APP_MANAGER, LOCALE_COMPONENT_PKP_SUBMISSION, LOCALE_COMPONENT_APP_SUBMISSION, LOCALE_COMPONENT_APP_EDITOR, LOCALE_COMPONENT_PKP_GRID, LOCALE_COMPONENT_PKP_EDITOR); } + /** + * Placeholder method to be overridden by apps in order to add + * app-specific data to the template + * + * @param $request Request + */ + public function setupIndex($request) {} + // // Protected helper methods //