Changed method getPersonFromStatus of Person_model to retrive also the UID(s) of the prestudent

This commit is contained in:
Paolo
2018-04-09 17:41:22 +02:00
parent cdac13c33f
commit 558b6106c0
+6 -2
View File
@@ -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'
)
);