Skip to content

Commit

Permalink
Merge pull request #9731 from jitendrapurohit/CRM-19927
Browse files Browse the repository at this point in the history
CRM-19927: Error message when 'Add to Group' is pressed with no group…
  • Loading branch information
monishdeb authored Jan 30, 2017
2 parents e0773cc + 66fc040 commit 234e356
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CRM/Contact/BAO/GroupContact.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ public static function addContactsToGroup(
$status = 'Added',
$tracking = NULL
) {
if (empty($contactIds) || empty($groupId)) {
return array();
}

CRM_Utils_Hook::pre('create', 'GroupContact', $groupId, $contactIds);

Expand Down

0 comments on commit 234e356

Please sign in to comment.