diff --git a/application/controllers/api/frontend/v1/Profil.php b/application/controllers/api/frontend/v1/Profil.php index 576a2a8ed..36bc5b68c 100644 --- a/application/controllers/api/frontend/v1/Profil.php +++ b/application/controllers/api/frontend/v1/Profil.php @@ -499,7 +499,7 @@ class Profil extends FHCAPI_Controller /** @param integer $geburtsInfo */ if ($geburtsInfo) { array_push($selectClause, "gebort"); - array_push($selectClause, "gebdatum"); + array_push($selectClause, "TO_CHAR(gebdatum, 'DD.MM.YYYY') as gebdatum"); } $this->BenutzerModel->addSelect($selectClause); $this->BenutzerModel->addJoin("tbl_person", "person_id"); diff --git a/public/js/components/Cis/Profil/MitarbeiterProfil.js b/public/js/components/Cis/Profil/MitarbeiterProfil.js index de1889059..ccdc68a9b 100644 --- a/public/js/components/Cis/Profil/MitarbeiterProfil.js +++ b/public/js/components/Cis/Profil/MitarbeiterProfil.js @@ -230,7 +230,7 @@ export default { [`${this.$p.t('profil', 'Geburtsort')}`]: this.data.gebort, [`${this.$p.t('profil', 'Kurzzeichen')}`]: this.data.kurzbz, [`${this.$p.t('profil', 'Telefon')}`]: - (this.data.standort_telefon ? this.data.standort_telefon + " " + this.data.telefonklappe : this.data.telefonklappe), + (this.data.standort_telefon ? this.data.standort_telefon.kontakt + " " + this.data.telefonklappe : this.data.telefonklappe), [`${this.$p.t('profil', 'Büro')}`]: this.data.ort_kurzbz, }; },