Filter groups according to included profiles
[civicrm-core.git] / CRM / Profile / Form.php
index 77bdb0c1018ef7850d10deaf813f68cf5ccf98ae..6f63c185288c06e591c90b40df9ed238392b47a4 100644 (file)
@@ -1270,7 +1270,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,