modify using open mode newTab or window with multiple Recipients via post request

This commit is contained in:
Harald Bamberger
2025-12-02 07:54:13 +01:00
parent be2b578f82
commit afb3ce4cae
6 changed files with 93 additions and 37 deletions
@@ -122,6 +122,9 @@ class Messages extends FHCAPI_Controller
public function getMsgVarsPrestudent($typeId)
{
$ids = $this->input->post('ids');
if(!is_array($ids)) {
$ids = array($ids);
}
$messageVarsPrestudent = [];
if($typeId == 'uid')
@@ -169,6 +172,9 @@ class Messages extends FHCAPI_Controller
public function getNameOfDefaultRecipients($type_id)
{
$ids = $this->input->post('ids');
if(!is_array($ids)) {
$ids = array($ids);
}
$recipients = [];
if (empty($ids)) {
@@ -301,6 +307,10 @@ class Messages extends FHCAPI_Controller
if (isset($_POST['ids']))
{
$ids = json_decode($_POST['ids']);
if(!is_array($ids))
{
$ids = array($ids);
}
unset($_POST['ids']);
}
else