Leitungsansicht Autocomplete 1st draft

This commit is contained in:
cgfhtw
2023-07-05 08:30:33 +02:00
parent 3ca80904ea
commit 61856473ea
6 changed files with 86 additions and 35 deletions
@@ -167,9 +167,12 @@ class Abmeldung extends FHC_Controller
{
$this->load->library('PermissionLib');
$_POST = json_decode($this->input->raw_input_stream, true);
$query = $this->input->post('query');
$studiengaenge = $this->permissionlib->getSTG_isEntitledFor('student/studierendenantrag');
$result = $this->antraglib->getAbmeldeBerechtigtForStg($studiengaenge);
$result = $this->antraglib->getAktivePrestudentenInStgs($studiengaenge, $query);
if (isError($result)) {
return $this->outputJsonError(getError($result));
}
@@ -178,6 +181,8 @@ class Abmeldung extends FHC_Controller
return $this->outputJsonSuccess([]);
}
return $this->outputJsonSuccess($result);
$sortedStudents = [];
foreach ($result as $item) {
if (!isset($sortedStudents[$item->studiengang_kz]))