mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +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"]]);
|
||||
|
||||
Reference in New Issue
Block a user