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"]]);
+1 -1
View File
@@ -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(
@@ -233,7 +233,7 @@ export default {
</div>
<div class="card-body" >
<div class="table-responsive text-nowrap">
<table class="m-0 table table-hover">
<table class="m-0 table table-hover align-middle">
<thead >
<tr >
<th scope="col">{{$p.t('profilUpdate','topic')}}</th>
@@ -102,7 +102,7 @@ export default {
template: /*html*/ `
<div class="gy-3 row justify-content-center align-items-center">
<pre>{{JSON.stringify(data,null,2)}}</pre>
<!-- warning message for too many zustellungs Adressen -->
<div v-if="showZustellAdressenWarning" class="col-12 ">
<div class="card bg-danger mx-2">