From 65f3e68b2c146b611dbf5593503f4e1a368197c9 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Fri, 27 Sep 2024 16:13:30 -0400 Subject: [PATCH] Ensure a title exists on Petition start, dispatch, and resume (CFM-31) (#222) --- .../src/Controller/AttributeCollectorsController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/plugins/CoreEnroller/src/Controller/AttributeCollectorsController.php b/app/plugins/CoreEnroller/src/Controller/AttributeCollectorsController.php index 27faa2749..0cb0f9928 100644 --- a/app/plugins/CoreEnroller/src/Controller/AttributeCollectorsController.php +++ b/app/plugins/CoreEnroller/src/Controller/AttributeCollectorsController.php @@ -118,6 +118,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'); }