fix broken tabs
authordemeritcowboy <demeritcowboy@hotmail.com>
Mon, 7 Dec 2020 19:19:37 +0000 (14:19 -0500)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Mon, 7 Dec 2020 19:19:37 +0000 (14:19 -0500)
CRM/UF/Page/Group.php

index f2d5a434318c9df87d6e2c0350226cc4b0583567..07e3daf6016601aebaaec8bba35f23ff55661b74 100644 (file)
@@ -361,6 +361,12 @@ class CRM_UF_Page_Group extends CRM_Core_Page {
     }
 
     $this->assign('rows', $ufGroup);
+
+    Civi::resources()
+      ->addScriptFile('civicrm', 'templates/CRM/common/TabHeader.js', 1, 'html-header')
+      ->addSetting([
+        'tabSettings' => ['active' => $_GET['selectedChild'] ?? NULL],
+      ]);
   }
 
   /**