diff --git a/application/libraries/AkteLib.php b/application/libraries/AkteLib.php index c4aee0095..6f2a6427a 100644 --- a/application/libraries/AkteLib.php +++ b/application/libraries/AkteLib.php @@ -43,7 +43,7 @@ class AkteLib */ public function add( $person_id, $dokument_kurzbz, $titel, $mimetype, $fileHandle, // Required parameters - $bezeichnung = null, $archiv = false, $signiert = false, $stud_selfservice = false + $bezeichnung = null, $archiv = false, $signiert = false, $stud_selfservice = false, $prestudent_id = null ) { // add new dms entry and new dms version for the Akte, using Akte data (title, mimetype, file content as handle) @@ -69,7 +69,8 @@ class AkteLib 'signiert' => $signiert, 'stud_selfservice' => $stud_selfservice, 'insertamum' => date('Y-m-d H:i:s'), - 'insertvon' => $this->_who + 'insertvon' => $this->_who, + 'prestudent_id' => $prestudent_id ) ); } @@ -127,7 +128,7 @@ class AkteLib $this->_ci->AkteModel->addSelect('person_id, dokument_kurzbz, mimetype, erstelltam, titel, bezeichnung, gedruckt, uid, dms_id, nachgereicht, nachgereicht_am, anmerkung, ausstellungsnation, formal_geprueft_amum, archiv, signiert, - stud_selfservice, akzeptiertamum, insertvon, insertamum, updatevon, updateamum'); + stud_selfservice, akzeptiertamum, insertvon, insertamum, updatevon, updateamum, prestudent_id'); $this->_ci->AkteModel->load($akte_id); $akteResult = $this->_ci->AkteModel->load($akte_id); diff --git a/application/models/crm/Akte_model.php b/application/models/crm/Akte_model.php index 15a38022e..751637690 100644 --- a/application/models/crm/Akte_model.php +++ b/application/models/crm/Akte_model.php @@ -35,7 +35,8 @@ class Akte_model extends DB_Model anmerkung, nachgereicht, nachgereicht_am, - CASE WHEN inhalt is not null THEN true ELSE false END as inhalt_vorhanden + CASE WHEN inhalt is not null THEN true ELSE false END as inhalt_vorhanden, + prestudent_id FROM public.tbl_akte WHERE person_id = ?'; diff --git a/content/lvplanung/lehrveranstaltungnotenoverlay.xul.php b/content/lvplanung/lehrveranstaltungnotenoverlay.xul.php index fda16c07a..718553d0a 100644 --- a/content/lvplanung/lehrveranstaltungnotenoverlay.xul.php +++ b/content/lvplanung/lehrveranstaltungnotenoverlay.xul.php @@ -136,6 +136,10 @@ echo " +