From ca6b3004ea97fd799ac4af67dadcd5a9d293241a Mon Sep 17 00:00:00 2001 From: highfalutin Date: Fri, 14 Aug 2020 21:15:23 -0700 Subject: [PATCH] Mass SMS: Limit group selection to mailing groups 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. --- CRM/SMS/Form/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/SMS/Form/Group.php b/CRM/SMS/Form/Group.php index 4a53b78852..9755626958 100644 --- a/CRM/SMS/Form/Group.php +++ b/CRM/SMS/Form/Group.php @@ -102,7 +102,7 @@ class CRM_SMS_Form_Group extends CRM_Contact_Form_Task { ); // 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'); -- 2.25.1