mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
fixes buggs that were produced with the introduction of new phrasen
This commit is contained in:
@@ -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"]]);
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user