diff --git a/app/plugins/CoreEnroller/src/Controller/AttributeCollectorsController.php b/app/plugins/CoreEnroller/src/Controller/AttributeCollectorsController.php index 0e279be8e..7d19b315e 100644 --- a/app/plugins/CoreEnroller/src/Controller/AttributeCollectorsController.php +++ b/app/plugins/CoreEnroller/src/Controller/AttributeCollectorsController.php @@ -95,6 +95,12 @@ public function dispatch(string $id) { ->find() ->where(['petition_id' => $petition->id]) ->all()); + + // Get the title + // XXX Replace $petition->enrollment_flow_id with the Enrollment Flow "Name" (for now) + // XXX We should have a "Title" for end-users that is different from the Enrollment Flow "Name" + // for start and dispatch. + $this->set('vv_title', $petition->enrollment_flow_id); $this->render('/Standard/dispatch'); } diff --git a/app/src/Controller/EnrollmentFlowsController.php b/app/src/Controller/EnrollmentFlowsController.php index 940a69fef..79f043fbe 100644 --- a/app/src/Controller/EnrollmentFlowsController.php +++ b/app/src/Controller/EnrollmentFlowsController.php @@ -143,6 +143,12 @@ public function start(string $id) { // We need to render a form, so we'll delay creating the petition // until we come back from the form. Since there's no petition there's // no meaningful information to pass through and back. + + // Get the title + // XXX We should have a "Title" for end-users that is different from the Enrollment Flow "Name" + // for start and dispatch. + $this->set('vv_title', $flow->name); + } else { // No form, so just allocate a new Petition and set appropriate metadata diff --git a/app/templates/EnrollmentFlows/start.php b/app/templates/EnrollmentFlows/start.php index d6b5f5017..ecf30a486 100644 --- a/app/templates/EnrollmentFlows/start.php +++ b/app/templates/EnrollmentFlows/start.php @@ -27,6 +27,15 @@ declare(strict_types = 1); +?> + +