This commit is contained in:
Gerald Raab
2016-04-01 14:00:53 +02:00
3 changed files with 14 additions and 9 deletions
+1 -1
View File
@@ -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)
+11 -6
View File
@@ -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
{