diff --git a/application/controllers/Cis/ProfilUpdate.php b/application/controllers/Cis/ProfilUpdate.php index 6daf11dcf..c6eade77f 100755 --- a/application/controllers/Cis/ProfilUpdate.php +++ b/application/controllers/Cis/ProfilUpdate.php @@ -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"]]); diff --git a/public/js/apps/Cis/Profil.js b/public/js/apps/Cis/Profil.js index fc4b1dba2..a5bf7141d 100755 --- a/public/js/apps/Cis/Profil.js +++ b/public/js/apps/Cis/Profil.js @@ -278,7 +278,7 @@ const profilApp = Vue.createApp({ }, }, Private_Kontakte: { - title: this.$p.t('profil','privateAdressen'), + title: this.$p.t('profil','privateKontakte'), data: this.data.kontakte ?.filter((item) => { return !this.data.profilUpdates?.some( diff --git a/public/js/components/Cis/Profil/ProfilComponents/FetchProfilUpdates.js b/public/js/components/Cis/Profil/ProfilComponents/FetchProfilUpdates.js index 630569a6e..63ad2d8fe 100755 --- a/public/js/components/Cis/Profil/ProfilComponents/FetchProfilUpdates.js +++ b/public/js/components/Cis/Profil/ProfilComponents/FetchProfilUpdates.js @@ -233,7 +233,7 @@ export default {
- +
diff --git a/public/js/components/Cis/Profil/ProfilModal/EditProfilComponents/EditAdresse.js b/public/js/components/Cis/Profil/ProfilModal/EditProfilComponents/EditAdresse.js index 19d5b8c92..d8238c736 100755 --- a/public/js/components/Cis/Profil/ProfilModal/EditProfilComponents/EditAdresse.js +++ b/public/js/components/Cis/Profil/ProfilModal/EditProfilComponents/EditAdresse.js @@ -102,7 +102,7 @@ export default { template: /*html*/ `
- +
{{JSON.stringify(data,null,2)}}
{{$p.t('profilUpdate','topic')}}