mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
bugfixes changeStatus, generateMatrikelnummer, updateLists, validations
This commit is contained in:
@@ -245,6 +245,35 @@ class PrestudentstatusCheckLib
|
||||
return success(getData($result));
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if status aufgenommen already exists.
|
||||
* @return error if invalid
|
||||
* @return error if no status Aufgenommen, success otherwise
|
||||
*/
|
||||
public function checkIfExistingAufgenommenerstatus($prestudent_id)
|
||||
{
|
||||
$result = $this->_getApplicationData($prestudent_id);
|
||||
if(isError($result))
|
||||
{
|
||||
return getData($result);
|
||||
}
|
||||
$result = current(getData($result));
|
||||
$studentName = trim ($result->vorname.' '.$result->nachname);
|
||||
|
||||
$result = $this->_ci->PrestudentstatusModel->checkIfExistingAufgenommenerstatus(
|
||||
$prestudent_id
|
||||
);
|
||||
if(isError($result))
|
||||
{
|
||||
return getData($result);
|
||||
}
|
||||
if(getData($result) == "0")
|
||||
{
|
||||
return error($this->_ci->p->t('lehre','error_keinAufgenommener', ['name' => $studentName]));
|
||||
}
|
||||
return success(getData($result));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if Bismeldestichtag erreicht
|
||||
* @param Date $statusDatum
|
||||
|
||||
Reference in New Issue
Block a user