From 24a979f9f193aae95d43e35d5eae12a82dfcd73c Mon Sep 17 00:00:00 2001 From: KarpAlex Date: Wed, 18 Aug 2021 22:16:15 +0200 Subject: [PATCH] Zeugnisnote_model.php, method getByPerson: note and note bezeichnung are also selected --- .../models/education/Zeugnisnote_model.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/application/models/education/Zeugnisnote_model.php b/application/models/education/Zeugnisnote_model.php index 2ccea3e53..65607e252 100644 --- a/application/models/education/Zeugnisnote_model.php +++ b/application/models/education/Zeugnisnote_model.php @@ -92,18 +92,18 @@ class Zeugnisnote_model extends DB_Model { $params = array($person_id, $studiensemester_kurzbz); - $qry = ' - SELECT zgnisnote.*, pers.matr_nr, lv.ects, stg.studiengang_kz, prst.prestudent_id, stg.erhalter_kz, - UPPER(stg.typ||stg.kurzbz) AS studiengang, stg.bezeichnung AS studiengang_bezeichnung - FROM public.tbl_person pers - JOIN public.tbl_prestudent prst USING (person_id) - JOIN public.tbl_student USING (prestudent_id) - JOIN lehre.tbl_zeugnisnote zgnisnote USING (student_uid) - JOIN lehre.tbl_note note ON zgnisnote.note = note.note - JOIN lehre.tbl_lehrveranstaltung lv USING (lehrveranstaltung_id) - JOIN public.tbl_studiengang stg ON prst.studiengang_kz = stg.studiengang_kz - WHERE pers.person_id = ? - AND zgnisnote.studiensemester_kurzbz = ?'; + $qry = "SELECT zgnisnote.*, pers.matr_nr, lv.ects, stg.studiengang_kz, prst.prestudent_id, stg.erhalter_kz, + UPPER(stg.typ||stg.kurzbz) AS studiengang, stg.bezeichnung AS studiengang_bezeichnung, note.note, + note.bezeichnung AS note_bezeichnung + FROM public.tbl_person pers + JOIN public.tbl_prestudent prst USING (person_id) + JOIN public.tbl_student USING (prestudent_id) + JOIN lehre.tbl_zeugnisnote zgnisnote USING (student_uid) + JOIN lehre.tbl_note note ON zgnisnote.note = note.note + JOIN lehre.tbl_lehrveranstaltung lv USING (lehrveranstaltung_id) + JOIN public.tbl_studiengang stg ON prst.studiengang_kz = stg.studiengang_kz + WHERE pers.person_id = ? + AND zgnisnote.studiensemester_kurzbz = ?"; if (isset($aktiv)) {