From ea45ce99348e5befd6891574c2dbe8ef9e7d9d7b Mon Sep 17 00:00:00 2001 From: ma0048 Date: Thu, 11 Feb 2021 11:57:45 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Sprache=20und=20Sprachwahl=20fixed,=20wenn?= =?UTF-8?q?=20kein=20Studienplan=20verf=C3=BCgbar=20ist.=20Ablauf=5FID=20w?= =?UTF-8?q?ird=20nun=20mitgeschickt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/testtool/admin/gebieteAnheangen.php | 6 ++---- cis/testtool/login.php | 19 ++++++++++++++++--- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/cis/testtool/admin/gebieteAnheangen.php b/cis/testtool/admin/gebieteAnheangen.php index 8617fa3c1..ab14f79e4 100644 --- a/cis/testtool/admin/gebieteAnheangen.php +++ b/cis/testtool/admin/gebieteAnheangen.php @@ -220,6 +220,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'edit') $studiengang = new studiengang($stg_kz); echo ' + @@ -254,10 +255,7 @@ if (isset($_GET['action']) && $_GET['action'] == 'editsave') { if (isset($_POST['reihung']) && $_POST['reihung'] != '' && isset($_POST['gewicht']) && $_POST['gewicht'] != '' && isset($_POST['semester']) && $_POST['semester'] != '') { - $ablauf = new ablauf(); - $ablauf->getAblaufId($stg_kz, $_POST['gebiet_id']); - $ablauf_id = $ablauf->result[0]; - $ablauf = new ablauf($ablauf_id); + $ablauf = new ablauf($_POST['ablauf_id']); $ablauf = $ablauf->result[0]; $ablauf->reihung = $_POST['reihung']; $ablauf->gewicht = $_POST['gewicht']; diff --git a/cis/testtool/login.php b/cis/testtool/login.php index f20d93911..b7cbc02b5 100644 --- a/cis/testtool/login.php +++ b/cis/testtool/login.php @@ -219,6 +219,11 @@ if (isset($_REQUEST['prestudent'])) $ablauf->getAblaufGebiete($firstPrio_studiengang_kz, $firstPrio_studienplan_id); $rt_sprache = ''; + if (empty($ablauf->result[0])) + { + $ablauf->getAblaufGebiete($firstPrio_studiengang_kz); + } + if (!empty($ablauf->result[0])) { $rt_sprache = $ablauf->result[0]->sprache; @@ -441,6 +446,7 @@ if (isset($prestudent_id)) if (isset($row_prio->studiengang_kz)) { $firstPrio_studiengang_kz = $row_prio->studiengang_kz; + $firstPrio_studienplan_id = $row_prio->studienplan_id; break; } } @@ -449,9 +455,16 @@ if (isset($prestudent_id)) // Sprachwahl zu STG mit höchster Prio ermitteln $ablauf = new Ablauf(); $sprachwahl = false; - if (isset($ablauf->result[0]) - && $ablauf->getAblaufVorgabeStudiengang($firstPrio_studiengang_kz) - && is_bool($ablauf->result[0]->sprachwahl)) + + $ablauf->getAblaufGebiete($firstPrio_studiengang_kz, $firstPrio_studienplan_id); + + if (empty($ablauf->result[0])) + { + $ablauf->getAblaufGebiete($firstPrio_studiengang_kz); + } + + if (isset($ablauf->result[0]) + && is_bool($ablauf->result[0]->sprachwahl)) { $sprachwahl = $ablauf->result[0]->sprachwahl; } From d69083eba2b9052c06396c63c0e3d5026b53bb91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Fri, 19 Feb 2021 17:13:53 +0100 Subject: [PATCH 2/2] Fixed Typo in Demo Page --- cis/public/testtool_test/testseite.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cis/public/testtool_test/testseite.php b/cis/public/testtool_test/testseite.php index dd86d9de4..470fec2c2 100644 --- a/cis/public/testtool_test/testseite.php +++ b/cis/public/testtool_test/testseite.php @@ -76,7 +76,7 @@ echo '';
-

Fomeln

+

Formeln

Die Formeln auf der linken Seite sollten möglichst gleich dargestellt werden, wie in dem Bild auf der rechten Seite.
Abweichungen in Schriftgröße und -art können vorkommen.

The formula on the left side should be equal to the picture on the right side.
@@ -166,5 +166,4 @@ echo '';

- - +
Studiengang_kz:
Gebiet:
Reihung: