From e4ecd798d316c76c17e18b99f9743c9389f6aae2 Mon Sep 17 00:00:00 2001 From: Manfred Kindl Date: Mon, 11 Feb 2013 17:16:45 +0000 Subject: [PATCH] =?UTF-8?q?Klasse=20erweitert=20um=20bei=20der=20Personens?= =?UTF-8?q?uche=20Im=20CIS=20auch=20den=20Raum=20(B=C3=BCro)=20der=20Perso?= =?UTF-8?q?n=20anzuzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/benutzer.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/benutzer.class.php b/include/benutzer.class.php index 54101ff24..d5a6a6b65 100644 --- a/include/benutzer.class.php +++ b/include/benutzer.class.php @@ -274,7 +274,10 @@ class benutzer extends person WHERE mitarbeiter_uid=tbl_benutzer.uid AND (tbl_kontakt.kontakttyp='telefon' OR tbl_kontakt.kontakttyp is null) - ) as klappe + ) as klappe, + (SELECT planbezeichnung FROM public.tbl_mitarbeiter + LEFT JOIN public.tbl_ort USING (ort_kurzbz) + WHERE mitarbeiter_uid=tbl_benutzer.uid) as raum FROM public.tbl_person JOIN public.tbl_benutzer USING(person_id) @@ -306,6 +309,7 @@ class benutzer extends person $obj->studiengang = $row->studiengang; $obj->studiengang_kz = $row->studiengang_kz; $obj->telefonklappe = $row->klappe; + $obj->raum = $row->raum; $obj->alias = $row->alias; $this->result[] = $obj;