From bb787ecbada4ed06e09903ce66ae2d84d3e5d4f6 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Wed, 27 Mar 2024 09:44:55 -0400 Subject: [PATCH] Subnavigation fix for Enrollment Flow steps (CFM-31) --- app/templates/element/subnavigation.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/templates/element/subnavigation.php b/app/templates/element/subnavigation.php index a02cb6eea..6c8e6981c 100644 --- a/app/templates/element/subnavigation.php +++ b/app/templates/element/subnavigation.php @@ -57,13 +57,17 @@ $navController = $tabsController; } elseif(!empty($vv_person_id)) { $curId = $vv_person_id; - } elseif($active == 'plugin' && !empty($vv_primary_link_obj) && !empty($vv_primary_link_model)) { + } elseif( + ($active == 'plugin' || (!empty($vv_primary_link) && $vv_primary_link == 'enrollment_flow_id')) + && !empty($vv_primary_link_obj) + && !empty($vv_primary_link_model) + ) { $curId = $vv_primary_link_obj->id; $navController = $vv_primary_link_model; } elseif(!empty($vv_primary_link_id)) { $curId = $vv_primary_link_id; - } - + } + // For top-level nav while in edit pages. if ($name == 'person') { $linkFilter = ['person_id' => $curId];