Bugfix: correct compare values in Pruefung->insertPruefung()

This commit is contained in:
chfhtw
2025-11-21 10:42:13 +01:00
parent d916c6ab31
commit 1666ba82b2
@@ -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();
}