To populate the selector for mass SMS recipients, the form calls CRM_Core_PseudoConstant::nestedGroup(). However the function call was missing an argument, so all groups were being returned, not just mailing groups as intended. This PR corrects the mistake.
);
// Get the mailing groups.
- $groups = CRM_Core_PseudoConstant::nestedGroup('Mailing');
+ $groups = CRM_Core_PseudoConstant::nestedGroup(TRUE, 'Mailing');
// Get the sms mailing list.
$mailings = CRM_Mailing_PseudoConstant::completed('sms');