Attempt to fix bug where a tab's link property is ignored.
authorFrank J. Gómez <frank@ginkgostreet.com>
Wed, 22 Jul 2015 15:16:45 +0000 (11:16 -0400)
committerFrank J. Gómez <frank@ginkgostreet.com>
Wed, 22 Jul 2015 23:09:48 +0000 (19:09 -0400)
CRM/Event/Form/ManageEvent/TabHeader.php

index a5e7ac4cc5aee4ea803486495df27fb8e2a435a3..8e299d71a6ac2715650dba452704c13d899fb4ba 100644 (file)
@@ -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;
   }