Skip to content

Provide better evaluations in upperButtons "start" enrollment flow link (CFM-428) #257

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
8 changes: 4 additions & 4 deletions app/templates/element/subnavigation/upperButtons.php
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