fixes buggs that were produced with the introduction of new phrasen

This commit is contained in:
SimonGschnell
2024-04-09 09:08:47 +02:00
parent 2df91bce5c
commit 78031bf1ad
4 changed files with 7 additions and 5 deletions
+4 -2
View File
@@ -508,8 +508,10 @@ class ProfilUpdate extends Auth_Controller
}else{
switch($topic){
case "titel": $topic ="titelpre"; break;
case "postnomen": $topic = "titelpost"; break;
// mapping phrasen to database columns to make the update with the correct column names
case $this->p->t('profilUpdate','title'): $topic ="titelpre"; break;
case $this->p->t('profilUpdate','postnomen'): $topic = "titelpost"; break;
case $this->p->t('profilUpdate','vorname'): $topic = "vorname"; break;
}
$result = $this->PersonModel->update($personID,[$topic=>$requested_change["value"]]);