Optionaler Grund bei Einspruch ablehnen

This commit is contained in:
cgfhtw
2023-07-25 13:42:38 +02:00
parent 8c98cea114
commit 7239113847
5 changed files with 92 additions and 44 deletions
+3 -1
View File
@@ -259,7 +259,6 @@ class AntragLib
*/
public function denyObjectionAbmeldung($studierendenantrag_id, $insertvon, $grund = null)
{
// TODO(chris): grund?
$result = $this->_ci->StudierendenantragModel->load($studierendenantrag_id);
if (isError($result))
{
@@ -282,6 +281,9 @@ class AntragLib
$status = current(getData($result));
if ($grund)
$grund = $this->_ci->p->t('studierendenantrag', 'mail_part_grund', ['grund' => $grund]);
$result = $this->_ci->StudierendenantragstatusModel->insert([
'studierendenantrag_id' => $studierendenantrag_id,
'studierendenantrag_statustyp_kurzbz' => Studierendenantragstatus_model::STATUS_OBJECTION_DENIED,