From 5a5bd9768b99b817380e3aad767be8327046397d Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Wed, 4 Dec 2024 13:13:42 -0500 Subject: [PATCH] Provide better evaluations in upperButtons start enrollment flow link (CFM-428) --- app/templates/element/subnavigation/upperButtons.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/templates/element/subnavigation/upperButtons.php b/app/templates/element/subnavigation/upperButtons.php index 7d6bb930..6a1eb865 100644 --- a/app/templates/element/subnavigation/upperButtons.php +++ b/app/templates/element/subnavigation/upperButtons.php @@ -36,10 +36,10 @@ ) { return; } - -$enrollmentFlowId = $vv_obj->id; -if($vv_controller != 'EnrollmentFlows') { - $enrollmentFlowId = $vv_primary_link_obj->id; + +$enrollmentFlowId = (!empty($vv_primary_link_obj->id) ? $vv_primary_link_obj->id : null); +if($vv_action == 'edit' || $vv_action == 'view') { + $enrollmentFlowId = $vv_obj->id; } $startButtonUrl = $this->Url->build(