mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Changed method getPersonFromStatus of Person_model to retrive also the UID(s) of the prestudent
This commit is contained in:
@@ -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'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user