Skip to content

Instantly share code, notes, and snippets.

@monishdeb
Created August 2, 2017 09:12
diff --git a/CRM/UF/Page/Group.php b/CRM/UF/Page/Group.php
index 265c2f6..736e23c 100644
--- a/CRM/UF/Page/Group.php
+++ b/CRM/UF/Page/Group.php
@@ -360,7 +360,10 @@ class CRM_UF_Page_Group extends CRM_Core_Page {
$action -= CRM_Core_Action::ADD;
$action -= CRM_Core_Action::ADVANCED;
$action -= CRM_Core_Action::BASIC;
- $action -= CRM_Core_Action::PROFILE;
+
+ if (array_key_exists(CRM_Core_Action::PROFILE, self::$_actionLinks)) {
+ $action -= CRM_Core_Action::PROFILE;
+ }
}
$ufGroup[$id]['group_type'] = self::formatGroupTypes($groupTypes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment