Student.php: bracket bugfix, return person id of added Personinstead of true, Studierendenverwaltung Projektarbeit phrases

This commit is contained in:
Alexei Karpenko
2025-09-22 17:34:50 +02:00
parent a533294121
commit 3f0f48a4e0
3 changed files with 10 additions and 8 deletions
@@ -513,7 +513,9 @@ class Student extends FHCAPI_Controller
if ($this->db->trans_status() === FALSE)
$this->terminateWithError('TODO(chris): TEXT', self::ERROR_TYPE_GENERAL);
$this->terminateWithSuccess($result);
$data = $this->getDataOrTerminateWithError($result);
$this->terminateWithSuccess($data);
}
protected function addInteressent()
@@ -695,7 +697,7 @@ class Student extends FHCAPI_Controller
//Studentendatensatz anlegen
//StudentLehrverband anlegen
}
}
// TODO(chris): DEBUG
/*$result = $this->PrestudentModel->loadWhere([
'pestudent_id' => 1
@@ -704,7 +706,7 @@ class Student extends FHCAPI_Controller
return $result;
}*/
return success(true);
return success($person_id);
}
public function requiredIfNotPersonId($value)