Usability: Added Pflichtfeld "Lesebestaetigung" to students VIEW

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-04-12 17:00:03 +02:00
committed by cris-technikum
parent b8768f997c
commit a70082f0e5
4 changed files with 67 additions and 2 deletions
@@ -106,6 +106,7 @@ class requestAnrechnung extends Auth_Controller
$begruendung_id = $this->input->post('begruendung');
$lehrveranstaltung_id = $this->input->post('lv_id');
$studiensemester_kurzbz = $this->input->post('studiensemester');
$bestaetigung = $this->input->post('bestaetigung');
// Validate data
if (empty($_FILES['uploadfile']['name']))
@@ -121,6 +122,11 @@ class requestAnrechnung extends Auth_Controller
return $this->outputJsonError($this->p->t('ui', 'errorFelderFehlen'));
}
if (isEmptyString($bestaetigung))
{
return $this->outputJsonError($this->p->t('ui', 'errorBestaetigungFehlt'));
}
// Exit if user is not a student
$result = $this->StudentModel->load(array('student_uid' => $this->_uid));