From 558b6106c05d7a77168a78634e5f16934f9cd233 Mon Sep 17 00:00:00 2001 From: Paolo Date: Mon, 9 Apr 2018 17:41:22 +0200 Subject: [PATCH] Changed method getPersonFromStatus of Person_model to retrive also the UID(s) of the prestudent --- application/models/person/Person_model.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/application/models/person/Person_model.php b/application/models/person/Person_model.php index 0c7c169bb..790f1b4db 100644 --- a/application/models/person/Person_model.php +++ b/application/models/person/Person_model.php @@ -111,10 +111,13 @@ class Person_model extends DB_Model $this->addJoin('public.tbl_prestudent', 'person_id'); + $this->addJoin('public.tbl_benutzer', 'person_id'); + $result = $this->loadTree( 'public.tbl_person', array( - 'public.tbl_prestudent' + 'public.tbl_prestudent', + 'public.tbl_benutzer' ), 'EXISTS ( SELECT @@ -129,7 +132,8 @@ class Person_model extends DB_Model AND datum <= '.$this->escape($bis).' )', array( - 'prestudenten' + 'prestudenten', + 'benutzer' ) );