diff --git a/application/controllers/person/Gradelist.php b/application/controllers/person/Gradelist.php index bf179ad35..70913061b 100644 --- a/application/controllers/person/Gradelist.php +++ b/application/controllers/person/Gradelist.php @@ -133,6 +133,11 @@ class Gradelist extends Auth_Controller if (in_array($row_status->status_kurzbz, array('Student','Diplomand','Incoming','Abbrecher','Unterbrecher','Absolvent'))) { + // Wenn das Semester schon vorhanden ist dann ueberspringen + // (bei mehreren Statuseintraegen im selben Semester (zB Absolvent / Diplomand) + if(isset($courses['semester'][$row_status->studiensemester_kurzbz])) + continue; + // LVs fuer das Semester holen lt Studienplan $lvtree = $this->studienplanlib->getLehrveranstaltungTree( $row_status->studienplan_id, @@ -184,7 +189,10 @@ class Gradelist extends Auth_Controller $courses['semester'][$row_noten->studiensemester_kurzbz]['lvs_nonstpl'][] = array( 'lehrveranstaltung_id' => $row_noten->lehrveranstaltung_id, 'lehrtyp_kurzbz' => $result_lv->retval[0]->lehrtyp_kurzbz, + 'lehrform_kurzbz' => $result_lv->retval[0]->lehrform_kurzbz, 'pflicht' => false, + 'sws' => $result_lv->retval[0]->sws, + 'zeugnis' => $result_lv->retval[0]->zeugnis, 'bezeichnung' => $result_lv->retval[0]->bezeichnung, 'ects' => $result_lv->retval[0]->ects, 'note' => $row_noten->note, @@ -316,7 +324,7 @@ class Gradelist extends Auth_Controller ); } - if ($row['childs']) + if (isset($row['childs'])) { $childgrades = $this->getGrades($row['childs']); $grades = array_merge($grades, $childgrades); diff --git a/application/libraries/StudienplanLib.php b/application/libraries/StudienplanLib.php index c40120721..ecc66e5bf 100644 --- a/application/libraries/StudienplanLib.php +++ b/application/libraries/StudienplanLib.php @@ -32,7 +32,10 @@ class StudienplanLib $treeitem = array( 'lehrveranstaltung_id' => $row->lehrveranstaltung_id, 'lehrtyp_kurzbz' => $row->lehrtyp_kurzbz, + 'lehrform_kurzbz' => $row->lehrform_kurzbz, + 'sws' => $row->sws, 'pflicht' => $row->pflicht, + 'zeugnis' => $row->zeugnis, 'bezeichnung' => $row->bezeichnung, 'ects' => $row->ects ); @@ -57,7 +60,10 @@ class StudienplanLib $treeitem = array( 'lehrveranstaltung_id' => $row->lehrveranstaltung_id, 'lehrtyp_kurzbz' => $row->lehrtyp_kurzbz, + 'lehrform_kurzbz' => $row->lehrform_kurzbz, + 'sws' => $row->sws, 'pflicht' => $row->pflicht, + 'zeugnis' => $row->zeugnis, 'bezeichnung' => $row->bezeichnung, 'ects' => $row->ects );