diff --git a/op/op.SetRecipients.php b/op/op.SetRecipients.php index 9c99ce148..a5f4dad99 100644 --- a/op/op.SetRecipients.php +++ b/op/op.SetRecipients.php @@ -87,6 +87,18 @@ foreach ($receiptStatus as $i=>$rs) { // Get the list of proposed recipients, stripping out any duplicates. $pIndRev = (isset($_POST["indRecipients"]) ? array_values(array_unique($_POST["indRecipients"])) : array()); +// Retrieve the list of recipient groups whose members become individual recipients +if (isset($_POST["grpIndRecipients"])) { + foreach ($_POST["grpIndRecipients"] as $grp) { + if($group = $dms->getGroup($grp)) { + $members = $group->getUsers(); + foreach($members as $member) { + if(!in_array($member->getID(), $pIndRev)) + $pIndRev[] = $member->getID(); + } + } + } +} $pGrpRev = (isset($_POST["grpRecipients"]) ? array_values(array_unique($_POST["grpRecipients"])) : array()); foreach ($pIndRev as $p) { if (is_numeric($p)) { diff --git a/views/bootstrap/class.SetRecipients.php b/views/bootstrap/class.SetRecipients.php index b6ceb6843..e8b4734e3 100644 --- a/views/bootstrap/class.SetRecipients.php +++ b/views/bootstrap/class.SetRecipients.php @@ -95,6 +95,15 @@ class SeedDMS_View_SetRecipients extends SeedDMS_Bootstrap_Style { ?> +