diff --git a/include/lehrveranstaltung.class.php b/include/lehrveranstaltung.class.php
index 2173a1b23..6c163e8df 100755
--- a/include/lehrveranstaltung.class.php
+++ b/include/lehrveranstaltung.class.php
@@ -1299,7 +1299,7 @@ class lehrveranstaltung extends basis_db
/**
* Generiert die Subtrees des Lehrveranstaltungstrees
*/
- protected function getLehrveranstaltungTreeChilds($studienplan_lehrveranstaltung_id)
+ public function getLehrveranstaltungTreeChilds($studienplan_lehrveranstaltung_id)
{
$childs = array();
foreach ($this->lehrveranstaltungen as $row)
diff --git a/include/studienplan.class.php b/include/studienplan.class.php
index 17611725c..9a353eb5c 100644
--- a/include/studienplan.class.php
+++ b/include/studienplan.class.php
@@ -609,8 +609,8 @@ class studienplan extends basis_db
$this->updateamum = $row->updateamum;
$this->updatevon = $row->updatevon;
$this->sort = $row->sort;
- $this->curriculum = $row->curriculum;
- $this->export = $row->export;
+ $this->curriculum = $this->db_parse_bool($row->curriculum);
+ $this->export = $this->db_parse_bool($row->export);
$this->new=false;
return true;
}
@@ -896,12 +896,17 @@ class studienplan extends basis_db
$this->db_add_param($key["ausbildungssemester"]) . '); ';
}
- if (!$this->db_query($qry))
+ if($qry!='')
{
- $this->errormsg = 'Fehler beim Speichern des Datensatzes';
- return false;
+ if (!$this->db_query($qry))
+ {
+ $this->errormsg = 'Fehler beim Speichern des Datensatzes';
+ return false;
+ }
+ return true;
}
- return true;
+ else
+ return true;
}
else
{
diff --git a/system/dbupdate_3.2.php b/system/dbupdate_3.2.php
index 34324ab7d..5f78a37b4 100755
--- a/system/dbupdate_3.2.php
+++ b/system/dbupdate_3.2.php
@@ -107,7 +107,7 @@ if(!@$db->db_query("SELECT bewerbung_abgeschicktamum FROM public.tbl_prestudents
//Spalte benotung in lehre.tbl_lehrveranstaltung
if (!$result = @$db->db_query("SELECT benotung FROM lehre.tbl_lehrveranstaltung LIMIT 1;"))
{
- $qry = "ALTER TABLE lehre.tbl_lehrveranstaltung ADD COLUMN benotung boolean NOT NULL DEFAULT FALSE;";
+ $qry = "ALTER TABLE lehre.tbl_lehrveranstaltung ADD COLUMN benotung boolean NOT NULL DEFAULT TRUE;";
if (!$db->db_query($qry))
echo 'lehre.tbl_lehrveranstaltung: ' . $db->db_last_error() . '
';
@@ -118,7 +118,7 @@ if (!$result = @$db->db_query("SELECT benotung FROM lehre.tbl_lehrveranstaltung
//Spalte lvinfo in lehre.tbl_lehrveranstaltung
if (!$result = @$db->db_query("SELECT lvinfo FROM lehre.tbl_lehrveranstaltung LIMIT 1;"))
{
- $qry = "ALTER TABLE lehre.tbl_lehrveranstaltung ADD COLUMN lvinfo boolean NOT NULL DEFAULT FALSE;";
+ $qry = "ALTER TABLE lehre.tbl_lehrveranstaltung ADD COLUMN lvinfo boolean NOT NULL DEFAULT TRUE;";
if (!$db->db_query($qry))
echo 'lehre.tbl_lehrveranstaltung: ' . $db->db_last_error() . '
';