From b15adf7b2335cb94067b231853fae4c8c51621a5 Mon Sep 17 00:00:00 2001 From: cgfhtw Date: Wed, 6 Dec 2023 14:32:29 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"task-35010:=20Abmeldung=20d.=20StG=20?= =?UTF-8?q?Pre-Abbrecher=20Statusgrund=20nach=20zur=C3=BCckgezogen=20wiede?= =?UTF-8?q?r=20r=C3=BCckg=C3=A4ngig=20machen"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3e9dcf2911aaae2b735ff04a187f8e766e918da2. --- application/libraries/AntragLib.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/application/libraries/AntragLib.php b/application/libraries/AntragLib.php index cb7431952..e3cc5bf14 100644 --- a/application/libraries/AntragLib.php +++ b/application/libraries/AntragLib.php @@ -62,24 +62,6 @@ class AntragLib 'insertvon' => $insertvon ]); - // NOTE(chris): remove "preabbrecher" statusgrund for Stgl-Abmeldungen if set - $res = $this->_ci->StudierendenantragModel->load($antrag_id); - if (hasData($res) && current(getData($res))->typ == Studierendenantrag_model::TYP_ABMELDUNG_STGL) { - $this->_ci->PrestudentstatusModel->addSelect('tbl_status_grund.statusgrund_kurzbz'); - $res = $this->_ci->PrestudentstatusModel->getLastStatusWithStgEmail(current(getData($res))->prestudent_id, '', 'Student'); - if (hasData($res) && current(getData($res))->statusgrund_kurzbz == 'preabbrecher') { - $prestudentstatus = current(getData($res)); - $this->_ci->PrestudentstatusModel->update([ - 'prestudent_id' => $prestudentstatus->prestudent_id, - 'status_kurzbz'=>$prestudentstatus->status_kurzbz, - 'studiensemester_kurzbz'=>$prestudentstatus->studiensemester_kurzbz, - 'ausbildungssemester'=>$prestudentstatus->ausbildungssemester - ], [ - 'statusgrund_id' => null - ]); - } - } - return $result; }