Skip to content

Commit

Permalink
Provide better evaluations in upperButtons start enrollment flow link…
Browse files Browse the repository at this point in the history
… (CFM-428) (#257)
  • Loading branch information
arlen authored Dec 4, 2024
1 parent b72575f commit 748adb3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/templates/element/subnavigation/upperButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 748adb3

Please sign in to comment.