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)
@@ -391,7 +391,7 @@ export default {
// stuff to do after new person has been saved
personSaved(result) {
this.$api
.call(ApiStvProjektbetreuer.getPerson(result.person_id))
.call(ApiStvProjektbetreuer.getPerson(result))
.then(response => {
// set the new person in Betreuer autocomplete field
this.autocompleteSelectedBetreuer = response.data;
+4 -4
View File
@@ -49801,7 +49801,7 @@ and represent the current state of research on the topic. The prescribed citatio
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Projektbetreuer ungültig',
'text' => 'ProjektbetreuerIn ungültig',
'description' => '',
'insertvon' => 'system'
),
@@ -49821,7 +49821,7 @@ and represent the current state of research on the topic. The prescribed citatio
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Löschen nicht möglich, Projektbetreuer hat bereits einen Vertrag',
'text' => 'Löschen nicht möglich, ProjektbetreuerIn hat bereits einen Vertrag',
'description' => '',
'insertvon' => 'system'
),
@@ -50261,7 +50261,7 @@ and represent the current state of research on the topic. The prescribed citatio
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Betreuer bearbeiten',
'text' => 'BetreuerIn bearbeiten',
'description' => '',
'insertvon' => 'system'
),
@@ -50281,7 +50281,7 @@ and represent the current state of research on the topic. The prescribed citatio
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Betreuer speichern',
'text' => 'BetreuerIn speichern',
'description' => '',
'insertvon' => 'system'
),