mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
Leitungsansicht Autocomplete 1st draft
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user