From: Frank J. Gómez Date: Wed, 22 Jul 2015 15:16:45 +0000 (-0400) Subject: Attempt to fix bug where a tab's link property is ignored. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fdc3fba90f0b1c18fca7d4b45d7266e2a2d7e40c;p=civicrm-core.git Attempt to fix bug where a tab's link property is ignored. --- diff --git a/CRM/Event/Form/ManageEvent/TabHeader.php b/CRM/Event/Form/ManageEvent/TabHeader.php index a5e7ac4cc5..8e299d71a6 100644 --- a/CRM/Event/Form/ManageEvent/TabHeader.php +++ b/CRM/Event/Form/ManageEvent/TabHeader.php @@ -199,12 +199,19 @@ WHERE e.id = %1 $action = 'browse'; } - $tabs[$key]['link'] = CRM_Utils_System::url("civicrm/event/manage/{$key}", - "{$reset}action={$action}&id={$eventID}&component=event{$tabs[$key]['qfKey']}" - ); + if (isset($value['link'])) { + $link = $value['link']; + $query = NULL; + } else { + $link = "civicrm/event/manage/{$key}"; + $query = "{$reset}action={$action}&id={$eventID}&component=event{$tabs[$key]['qfKey']}"; + } + $tabs[$key]['link'] = CRM_Utils_System::url($link, $query); } } +// var_dump($tabs); die(); + return $tabs; }