Renamed 'Meine Felder'-msg names and small method adaptation to retrieve fields

Signed-off-by: Cris <[email protected]>
This commit is contained in:
Cris
2020-05-28 09:42:51 +02:00
parent 046994f14b
commit 634401485a
3 changed files with 25 additions and 8 deletions
+5 -5
View File
@@ -202,11 +202,11 @@ if(!$result = @$db->db_query("SELECT 1 FROM public.vw_msg_vars_user LIMIT 1"))
$qry = '
CREATE OR REPLACE VIEW public.vw_msg_vars_user AS (
SELECT DISTINCT ON
(b.uid) b.uid,
p.vorname,
p.nachname,
b.alias,
ma.telefonklappe AS "durchwahl"
(b.uid) b.uid AS "my_uid",
p.vorname AS "my_vorname",
p.nachname AS "my_nachname",
b.alias AS "my_alias",
ma.telefonklappe AS "my_durchwahl"
FROM public.tbl_person p
JOIN public.tbl_benutzer b USING (person_id)
JOIN public.tbl_mitarbeiter ma ON ma.mitarbeiter_uid = b.uid