Skip to content

Commit

Permalink
Subnavigation fix for Enrollment Flow steps (CFM-31) (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
arlen committed Aug 13, 2024
1 parent 0b81439 commit 1c33cb2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/templates/element/subnavigation.php
Original file line number Diff line number Diff line change
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

0 comments on commit 1c33cb2

Please sign in to comment.