Skip to content

Subnavigation fix for Enrollment Flow steps (CFM-31) #177

Merged
merged 1 commit into from Mar 27, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 7 additions & 3 deletions app/templates/element/subnavigation.php
Expand Up @@ -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];
Expand Down