diff --git a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php index a98b60e16..83ac2c599 100644 --- a/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php +++ b/cis/private/lehre/benotungstool/lvgesamtnoteverwalten.php @@ -533,12 +533,41 @@ foreach($noten_obj->result as $row) var rows = data.split("\n"); var i=0; var params=''; + alertMsg = ''; var gradedata = {}; + var validGrades = ''; + + result as $row_note) + { + if($row_note->lehre && $row_note->aktiv) + $gradesArray[] = '"'.$row_note->anmerkung.'"'; + } + // Output JS variable with valid grades + echo 'var validGrades = ['.implode(',', $gradesArray).'];'; + } + ?> for(row in rows) { zeile = rows[row].split(" "); + + if(zeile[0]!='' && zeile[1]!='') { @@ -553,7 +582,10 @@ foreach($noten_obj->result as $row) i++; } } - + + if (alertMsg != "") + alert(alertMsg); + if(i>0) {