- Added matr_aktiv to person table for indication of not yet active matrikelnummern

- PersonModel getPersonStammdaten: staatsbuergerschafts- and geburtsnationcode are also retrieved
This commit is contained in:
alex
2020-11-11 23:29:18 +01:00
parent e499a07d7e
commit a86dcbd290
2 changed files with 22 additions and 2 deletions
+2 -1
View File
@@ -152,7 +152,8 @@ class Person_model extends DB_Model
*/
public function getPersonStammdaten($person_id, $zustellung_only = false)
{
$this->addSelect('public.tbl_person.*, s.kurztext as staatsbuergerschaft, g.kurztext as geburtsnation');
$this->addSelect('public.tbl_person.*, tbl_person.staatsbuergerschaft AS staatsbuergerschaft_code, tbl_person.geburtsnation AS geburtsnation_code,
s.kurztext as staatsbuergerschaft, g.kurztext as geburtsnation');
$this->addJoin('bis.tbl_nation s', 'public.tbl_person.staatsbuergerschaft = s.nation_code', 'LEFT');
$this->addJoin('bis.tbl_nation g', 'public.tbl_person.geburtsnation = g.nation_code', 'LEFT');