Filter groups according to included profiles
[civicrm-core.git] / CRM / Profile / Form.php
index 67046eb22085fab901fa31bf0cf2ebcb22dcb259..efd3e48421e88238ea747f5f0a13441632e7f8bd 100644 (file)
@@ -1287,7 +1287,7 @@ class CRM_Profile_Form extends CRM_Core_Form {
     }
 
     // sudoman hack: re-insert filtered group memberships
-    $params = CRM_Contact_Form_Edit_TagsAndGroups::reInsertFilteredGroupMemberships($this->_gid, 'profile', $this->_id, TRUE, $params);
+    $params = CRM_Contact_Form_Edit_TagsAndGroups::reInsertFilteredGroupMemberships([$this->_gid], $this->_id, TRUE, $params);
 
     $this->_id = CRM_Contact_BAO_Contact::createProfileContact(
       $params,