From d3c970bd842653c0ebd56bcaa357b04ad5eaada7 Mon Sep 17 00:00:00 2001 From: Nikolaus Krondraf Date: Mon, 19 Oct 2015 13:19:18 +0200 Subject: [PATCH 1/5] =?UTF-8?q?Spalte=20standort=5Fid=20zur=20Organisation?= =?UTF-8?q?seinheit=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/checksystem.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/system/checksystem.php b/system/checksystem.php index 35db4ac51..31039d2d7 100644 --- a/system/checksystem.php +++ b/system/checksystem.php @@ -3561,6 +3561,18 @@ if(!$result = @$db->db_query("SELECT aktiv FROM public.tbl_vorlagestudiengang")) echo '
public.tbl_vorlagestudiengang: Neue Spalte aktiv hinzugefuegt. Aktiv bei allen Vorlagen auf true gesetzt.'; } +// Spalte standort_id (FK) zur Organisationseinheit hinzugefügt +if(!$result = @$db->db_query("SELECT standort_id FROM public.tbl_organisationseinheit LIMIT 1")) +{ + $qry = "ALTER TABLE public.tbl_organisationseinheit ADD COLUMN standort_id integer; + ALTER TABLE public.tbl_organisationseinheit ADD CONSTRAINT standort_standort_id FOREIGN KEY (standort_id) REFERENCES public.tbl_standort (standort_id) ON UPDATE CASCADE ON DELETE RESTRICT; + "; + + if(!$db->db_query($qry)) + echo 'Organisationseinheit: '.$db->db_last_error().'
'; + else + echo '
Organisationseinheit: Spalte standort_id hinzugefügt'; +} echo '


'; From 99915459b163a833877b14c1fd460336c6544b48 Mon Sep 17 00:00:00 2001 From: Nikolaus Krondraf Date: Mon, 19 Oct 2015 13:49:20 +0200 Subject: [PATCH 2/5] =?UTF-8?q?Spalte=20code=20zum=20Standort=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- system/checksystem.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/system/checksystem.php b/system/checksystem.php index 31039d2d7..e0a0e6aba 100644 --- a/system/checksystem.php +++ b/system/checksystem.php @@ -3574,6 +3574,19 @@ if(!$result = @$db->db_query("SELECT standort_id FROM public.tbl_organisationsei echo '
Organisationseinheit: Spalte standort_id hinzugefügt'; } +// Spalte code zum Standort hinzugefügt +if(!$result = @$db->db_query("SELECT code FROM public.tbl_standort LIMIT 1")) +{ + $qry = "ALTER TABLE public.tbl_standort ADD COLUMN code varchar(3); + ALTER TABLE public.tbl_standort ADD CONSTRAINT uk_code UNIQUE (code); + "; + + if(!$db->db_query($qry)) + echo 'Standort: '.$db->db_last_error().'
'; + else + echo '
Standort: Spalte code hinzugefügt'; +} + echo '


'; $tabellen=array( From 7fbf3f273ffa9f6d5ec25bcf8b12faaec1c0ce15 Mon Sep 17 00:00:00 2001 From: oesi Date: Mon, 19 Oct 2015 16:49:57 +0200 Subject: [PATCH 3/5] Fehler bei der Berechnung der Anwesenheiten behoben --- include/anwesenheit.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/anwesenheit.class.php b/include/anwesenheit.class.php index 65123e81c..4bdfe4b2f 100644 --- a/include/anwesenheit.class.php +++ b/include/anwesenheit.class.php @@ -474,7 +474,7 @@ class anwesenheit extends basis_db SELECT count(*) anzahl FROM (SELECT datum, stunde FROM campus.vw_stundenplan WHERE lehreinheit_id=vw_student_lehrveranstaltung.lehreinheit_id - AND vw_stundenplan.titel not like '%Nebenprüfung%' GROUP BY datum, stunde) as a + AND (vw_stundenplan.titel not like '%Nebenprüfung%' OR vw_stundenplan.titel is null) GROUP BY datum, stunde) as a ) as gesamtstunden FROM campus.vw_student_lehrveranstaltung From 3a803db31ccd033dc128b1b3d57ed605ce586662 Mon Sep 17 00:00:00 2001 From: oesi Date: Mon, 19 Oct 2015 17:19:37 +0200 Subject: [PATCH 4/5] Fehler beim Anlegen von BIS-Verwendungen behoben --- include/bisverwendung.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/bisverwendung.class.php b/include/bisverwendung.class.php index 0e7aee251..bb245ce42 100644 --- a/include/bisverwendung.class.php +++ b/include/bisverwendung.class.php @@ -229,7 +229,7 @@ class bisverwendung extends basis_db $this->db_add_param($this->insertamum).', '. $this->db_add_param($this->insertvon).', '. $this->db_add_param($this->dv_art).','. - $this->db_add_param($this->inkludierte_lehre).';'; + $this->db_add_param($this->inkludierte_lehre).');'; } else From 209fd02a90274900c253b99d7d51fbae0731553e Mon Sep 17 00:00:00 2001 From: oesi Date: Mon, 19 Oct 2015 18:13:53 +0200 Subject: [PATCH 5/5] =?UTF-8?q?Require=20f=C3=BCr=20Sprache=20Klasse=20hin?= =?UTF-8?q?zugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/zgv.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/include/zgv.class.php b/include/zgv.class.php index 6e22728a7..a225df8a2 100755 --- a/include/zgv.class.php +++ b/include/zgv.class.php @@ -20,6 +20,7 @@ */ require_once(dirname(__FILE__).'/basis_db.class.php'); +require_once(dirname(__FILE__).'/sprache.class.php'); class zgv extends basis_db {