change form parameter mobility and add param studiensemester_kurzbz to function get LVsandLesByStudent

This commit is contained in:
ma0068
2025-03-03 11:45:31 +01:00
parent 28f11d7550
commit b50a4a16d1
6 changed files with 31 additions and 22 deletions
@@ -461,11 +461,13 @@ class Pruefung extends FHCAPI_Controller
$this->terminateWithSuccess($data);
}
public function getLvsandLesByStudent($student_uid)
public function getLvsandLesByStudent($student_uid, $semester_kurzbz=null)
{
$this->load->model('education/Lehrveranstaltung_model', 'LehrveranstaltungModel');
$result = $this->LehrveranstaltungModel->getLvsByStudent($student_uid);
//return $this->terminateWithError($semester_kurzbz, self::ERROR_TYPE_GENERAL);
$result = $this->LehrveranstaltungModel->getLvsByStudent($student_uid, $semester_kurzbz);
$data = $this->getDataOrTerminateWithError($result);