From 86a129a5e3cfad9ece44496375c939f90e92942c Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 4 Nov 2019 17:08:36 +0100 Subject: [PATCH] =?UTF-8?q?-=20user=20story=204023:=20when=20Fotoliste=20i?= =?UTF-8?q?s=20generated=20for=20more=20than=201=20Mitarbeiter=20(e.g.=20F?= =?UTF-8?q?reif=C3=A4cher),=20now=20different=20photos=20for=20each=20Mita?= =?UTF-8?q?rbeiter=20are=20generated=20(person=5Fid=20is=20used=20instead?= =?UTF-8?q?=20of=20Matrikelnr)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/private/lehre/fotoliste.pdf.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cis/private/lehre/fotoliste.pdf.php b/cis/private/lehre/fotoliste.pdf.php index b14b13e6a..3fc04355f 100644 --- a/cis/private/lehre/fotoliste.pdf.php +++ b/cis/private/lehre/fotoliste.pdf.php @@ -173,6 +173,7 @@ $qry = 'SELECT DISTINCT ON tbl_student.studiengang_kz AS stg_kz_student, tbl_zeugnisnote.note, tbl_mitarbeiter.mitarbeiter_uid, + tbl_person.person_id, tbl_person.matr_nr, tbl_person.geschlecht, tbl_person.foto, @@ -244,7 +245,7 @@ if ($result = $db->db_query($qry)) { if ($row->foto_sperre == 'f' && $row->foto != '') { $foto_src = $row->foto; - $foto_url = sys_get_temp_dir() . '/foto' . trim($row->matrikelnr) . '.jpg'; + $foto_url = sys_get_temp_dir() . '/foto' . trim($row->person_id) . '.jpg'; $foto_url_arr[] = $foto_url; //create writeable file @@ -257,7 +258,7 @@ if ($result = $db->db_query($qry)) { } //add foto to document - $doc->addImage($foto_url, trim($row->matrikelnr) . '.jpg', 'image/jpg'); + $doc->addImage($foto_url, trim($row->person_id) . '.jpg', 'image/jpg'); } elseif ($row->foto_sperre == 't') {