changes the data format from the studierendenEmail api call and displays the mailto on the modal

This commit is contained in:
SimonGschnell
2024-06-28 11:06:44 +02:00
parent c34144a4e8
commit d0f457d8ed
2 changed files with 21 additions and 7 deletions
@@ -57,6 +57,11 @@ class Lehre extends FHCAPI_Controller
$studentenMails = $this->getDataOrTerminateWithError($studentenMails);
//convert array of objects into array of strings
$studentenMails = array_map(function($element){
return $element->mail;
}, $studentenMails);
$this->terminateWithSuccess($studentenMails);
}