From 1666ba82b2bb940fc3ae8ec9ff39a8cc9bfc09b7 Mon Sep 17 00:00:00 2001 From: chfhtw Date: Fri, 21 Nov 2025 10:42:13 +0100 Subject: [PATCH] Bugfix: correct compare values in Pruefung->insertPruefung() --- application/controllers/api/frontend/v1/stv/Pruefung.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/controllers/api/frontend/v1/stv/Pruefung.php b/application/controllers/api/frontend/v1/stv/Pruefung.php index 1cdbf86bd..56f0d9597 100644 --- a/application/controllers/api/frontend/v1/stv/Pruefung.php +++ b/application/controllers/api/frontend/v1/stv/Pruefung.php @@ -324,7 +324,7 @@ class Pruefung extends FHCAPI_Controller ? $benotungsdatum : $uebernahmedatum; - if ($checkDate >= $this->input->post('datum') && $note !== $note->note) + if ($checkDate >= $this->input->post('datum') && $this->input->post('note') !== $note->note) { $this->PruefungModel->db->trans_complete(); $this->terminateWithSuccess($this->p->t('exam', 'hinweis_changeAfterExamDate')); @@ -344,7 +344,6 @@ class Pruefung extends FHCAPI_Controller 'punkte' => $this->input->post('punkte') ? str_replace(',', '.', $this->input->post('punkte')) : null ]); - $this->PruefungModel->db->trans_complete(); $this->terminateWithSuccess(); }