diff --git a/application/controllers/Cis/Profil.php b/application/controllers/Cis/Profil.php index dd1de706d..523a64386 100644 --- a/application/controllers/Cis/Profil.php +++ b/application/controllers/Cis/Profil.php @@ -166,8 +166,9 @@ class Profil extends Auth_Controller } + - if(isSuccess($this->MitarbeiterModel->addSelect(["kurzbz","telefonklappe", "alias"])) + if(isSuccess($this->MitarbeiterModel->addSelect(["kurzbz","telefonklappe", "alias","ort_kurzbz"])) && isSuccess($this->MitarbeiterModel->addJoin("tbl_benutzer", "tbl_benutzer.uid = tbl_mitarbeiter.mitarbeiter_uid")) ){ $mitarbeiter_res = $this->MitarbeiterModel->load($uid); diff --git a/public/js/components/Cis/Profil/Profil.js b/public/js/components/Cis/Profil/Profil.js index ff40f7bd7..1e7900c38 100644 --- a/public/js/components/Cis/Profil/Profil.js +++ b/public/js/components/Cis/Profil/Profil.js @@ -126,6 +126,7 @@ export default { SpecialInformation: this.role =='Mitarbeiter' || this.role === 'View_Mitarbeiter'? { Kurzzeichen: this.mitarbeiter_info?.kurzbz, Telefon: this.mitarbeiter_info?.telefonklappe, + ...(this.role === 'View_Mitarbeiter'?{Büro:this.mitarbeiter_info?.ort_kurzbz}:{}) , } : { Studiengang:this.student_info?.studiengang, Semester:this.student_info?.semester, @@ -223,6 +224,8 @@ export default {
+
+