beim abweisen das studiensemester hinzugefuegt

This commit is contained in:
ma0048
2021-06-01 11:13:23 +02:00
parent f05493d3f3
commit 5330e2b250
2 changed files with 7 additions and 4 deletions
@@ -1713,13 +1713,14 @@ class InfoCenter extends Auth_Controller
$statusgrund = $this->input->post('statusgrund');
$studiengang = $this->input->post('studiengang');
$personen = $this->input->post('personen');
$studienSemester = $this->variablelib->getVar('infocenter_studiensemester');
if ($statusgrund === 'null' || $studiengang === 'null' || empty($personen))
$this->terminateWithJsonError("Bitte Statusgrund, Studiengang und Personen auswählen.");
foreach($personen as $person)
{
$prestudent = $this->PrestudentModel->getPrestudentByStudiengangAndPerson($studiengang, $person);
$prestudent = $this->PrestudentModel->getPrestudentByStudiengangAndPerson($studiengang, $person, $studienSemester);
if(!hasData($prestudent))
continue;