Fix extensions tabs following deprecation of old tab code
authorMatthew Wire <mjw@mjwconsult.co.uk>
Sat, 5 Dec 2020 15:26:17 +0000 (15:26 +0000)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Sat, 5 Dec 2020 15:26:46 +0000 (15:26 +0000)
CRM/Admin/Page/Extensions.php

index 46d16e938f092ee22d479631642eee85c3f0b9d8..79b41002246f7b81b5a4a56ee41ab3f0cf934781 100644 (file)
@@ -132,6 +132,12 @@ class CRM_Admin_Page_Extensions extends CRM_Core_Page_Basic {
 
     $remoteExtensionRows = $this->formatRemoteExtensionRows($localExtensionRows);
     $this->assign('remoteExtensionRows', $remoteExtensionRows);
+
+    Civi::resources()
+      ->addScriptFile('civicrm', 'templates/CRM/common/TabHeader.js', 1, 'html-header')
+      ->addSetting([
+        'tabSettings' => ['active' => $_GET['selectedChild'] ?? NULL],
+      ]);
   }
 
   /**