From f8ea792281ed0935239c9c8ea8555f6318afec5b Mon Sep 17 00:00:00 2001 From: oesi Date: Wed, 22 Apr 2015 13:39:23 +0200 Subject: [PATCH] =?UTF-8?q?Fehler=20behoben=20bei=20dem=20das=20Eintragen?= =?UTF-8?q?=20von=20Pr=C3=BCfungsnoten=20bei=20deaktivierter=20Punkteeinga?= =?UTF-8?q?be=20nicht=20m=C3=B6glich=20ist?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lehre/benotungstool/lvgesamtnoteverwalten.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php index f0ee6c199..c91fb4bc3 100644 --- a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php +++ b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php @@ -173,7 +173,10 @@ foreach($noten_obj->result as $row) function saveLVNote(uid) { note = document.getElementById(uid).note.value; - note_label = document.getElementById(uid).note.label; + if(document.getElementById(uid).note) + note_label = document.getElementById(uid).note.label; + else + note_label=''; if(note=='') { alert('Bitte wählen Sie eine Note aus'); @@ -285,7 +288,10 @@ foreach($noten_obj->result as $row) function pruefungSpeichern() { var note = document.nachpruefung_form.note.value; - var punkte = document.nachpruefung_form.punkte.value; + if(document.nachpruefung_form.punkte) + var punkte = document.nachpruefung_form.punkte.value; + else + var punkte=''; var datum = document.nachpruefung_form.datum.value; var datum_test = datum.split("."); if (datum_test[0].length != 2 || datum_test[1].length != 2 || datum_test[2].length!=4 || isNaN(datum_test[2]) || datum_test[1]>12 || datum_test[1]<1 || datum_test[0]>31 || datum_test[0]<1) @@ -316,7 +322,10 @@ foreach($noten_obj->result as $row) var anlegendiv = document.getElementById("nachpruefung_div"); var datum = document.nachpruefung_form.datum.value; var note = document.nachpruefung_form.note.value; - var punkte = document.nachpruefung_form.punkte.value; + if(document.nachpruefung_form.punkte) + var punkte = document.nachpruefung_form.punkte.value; + else + var punkte=''; var uid = document.nachpruefung_form.uid.value; var lehreinheit_id = document.nachpruefung_form.le_id.value; var resp = result;