Skip to content
Snippets Groups Projects
Unverified Commit 1d9f5271 authored by totten's avatar totten Committed by GitHub
Browse files

Merge pull request #32435 from eileenmcnaughton/60-t

#5780 Fix tell-a-friend not rendering on Manage events
parents f8dbb526 9fb29ce0
No related branches found
No related tags found
No related merge requests found
......@@ -54,9 +54,13 @@ function tellafriend_civicrm_tabset($tabsetName, &$tabs, $context) {
'template' => FALSE,
'count' => FALSE,
'icon' => FALSE,
'url' => $tabsetName === 'civicrm/event/manage' ? 'civicrm/event/manage/friend' : '',
'url' => '',
'field' => 'friend',
];
$isFromBrowsePage = ($tabs['settings']['url'] ?? '') === 'civicrm/event/manage/settings' && empty($tabs['friend']);
if ($isFromBrowsePage) {
$default['url'] = 'civicrm/event/manage/friend';
}
$tabs['friend'] = ['title' => ts('Tell a Friend')] + $default;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment