diff --git a/.gitignore b/.gitignore
index c6bc2ccc3..8ebe61e25 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,3 +32,4 @@ tests/codeception/tests/acceptance.suite.yml
tests/codeception/tests/unit.suite.yml
/sparks/*
/webdav/google.php
+system/sql/
diff --git a/application/views/system/infocenter/infocenterData.php b/application/views/system/infocenter/infocenterData.php
index 2d9d30cf2..8abc163b7 100755
--- a/application/views/system/infocenter/infocenterData.php
+++ b/application/views/system/infocenter/infocenterData.php
@@ -14,7 +14,7 @@
SELECT zeitpunkt
FROM system.tbl_log
WHERE taetigkeit_kurzbz IN(\'bewerbung\',\'kommunikation\')
- AND logdata->>\'name\' NOT IN (\'Login with code\', \'New application\')
+ AND logdata->>\'name\' NOT IN (\'Login with code\', \'New application\', \'Interessent rejected\')
AND person_id = p.person_id
ORDER BY zeitpunkt DESC
LIMIT 1
@@ -23,7 +23,7 @@
SELECT insertvon
FROM system.tbl_log
WHERE taetigkeit_kurzbz IN(\'bewerbung\',\'kommunikation\')
- AND logdata->>\'name\' NOT IN (\'Login with code\', \'New application\')
+ AND logdata->>\'name\' NOT IN (\'Login with code\', \'New application\', \'Interessent rejected\')
AND person_id = p.person_id
ORDER BY zeitpunkt DESC
LIMIT 1
diff --git a/content/student/studentenoverlay.xul.php b/content/student/studentenoverlay.xul.php
index 8f311784d..a9de22360 100644
--- a/content/student/studentenoverlay.xul.php
+++ b/content/student/studentenoverlay.xul.php
@@ -288,10 +288,6 @@ else
class="sortDirectionIndicator"
sort="rdf:http://www.technikum-wien.at/student/rdf#matrikelnummer" onclick="StudentTreeSort()"/>
-
-
@@ -379,7 +375,11 @@ else
-
+
+
+
@@ -414,7 +414,6 @@ else
-
@@ -439,6 +438,7 @@ else
+
diff --git a/include/dokument.class.php b/include/dokument.class.php
index e7eb50b05..361599382 100644
--- a/include/dokument.class.php
+++ b/include/dokument.class.php
@@ -832,9 +832,9 @@ class dokument extends basis_db
if($result = $this->db_query($qry))
{
+ $stg_obj = new basis_db();
while($row = $this->db_fetch_object($result))
{
- $stg_obj = new basis_db();
$stg_obj->kuerzel = $row->kuerzel;
$stg_obj->bezeichnung = $row->bezeichnung;
$stg_obj->studiengang_kz = $row->studiengang_kz;
diff --git a/include/personlog.class.php b/include/personlog.class.php
index 1c008971c..55e69c90a 100644
--- a/include/personlog.class.php
+++ b/include/personlog.class.php
@@ -45,13 +45,13 @@ class personlog extends basis_db
/**
* Erstellt einen Log Eintrag zu einer Person
- * @param $person_id ID der Person.
- * @param $logtype_kurzbz Typ des Logeintrages
- * @param $logdata Array mit den zusaetzlichen Logdaten zu diesem Typ.
- * @param $taetigkeit_kurzbz Kurzbz der Verarbeitungstaetigkeit.
- * @param $app Applikation von der dieser Logeintrag stammt.
- * @param $oe_kurzbz Kurzbz der Organisationseinheit. (optional)
- * @param $user User der die Aktion durchgefuehrt hat. (optional)
+ * @param integer $person_id ID der Person.
+ * @param string $logtype_kurzbz Typ des Logeintrages
+ * @param array $logdata Array mit den zusaetzlichen Logdaten zu diesem Typ.
+ * @param string $taetigkeit_kurzbz Kurzbz der Verarbeitungstaetigkeit.
+ * @param string $app Applikation von der dieser Logeintrag stammt.
+ * @param string $oe_kurzbz Kurzbz der Organisationseinheit. (optional)
+ * @param string $user User der die Aktion durchgefuehrt hat. (optional)
* @return boolean true wenn erfolgreich, false im Fehlerfall.
*/
public function log($person_id, $logtype_kurzbz, $logdata, $taetigkeit_kurzbz, $app = 'core', $oe_kurzbz = null, $user = null)
@@ -77,5 +77,25 @@ class personlog extends basis_db
return false;
}
}
+
+ /**
+ * Löscht alle Logeinträge vom Typ "Parked" der übergebenen Person_id die in der Zukunft liegen.
+ * @param integer $person_id ID der Person, deren geparkter Logeintrag gelöscht werden soll.
+ * @return boolean true wenn erfolgreich, false im Fehlerfall.
+ */
+ public function deleteParked($person_id)
+ {
+ $qry = "DELETE FROM system.tbl_log WHERE logtype_kurzbz='Parked' AND person_id=".$this->db_add_param($person_id)." AND zeitpunkt>=now();";
+
+ if($this->db_query($qry))
+ {
+ return true;
+ }
+ else
+ {
+ $this->errormsg = 'Fehler beim Löschen des geparkten Logeintrages';
+ return false;
+ }
+ }
}
?>
diff --git a/system/system_check_sql.php b/system/system_check_sql.php
index 423d81d97..e45d73d0b 100644
--- a/system/system_check_sql.php
+++ b/system/system_check_sql.php
@@ -94,6 +94,7 @@ if (($files = glob($slq_import_path.'/*.sql')) != false)
{
$mailcontent .= '
Die Abfrage der Datei "'.$filename.'" hat folgenden Fehler geliefert:
';
$mailcontent .= ''.$db->db_last_error () . '
';
+ $mailcontent .= ''.$sql.'
';
continue;
}
@@ -101,18 +102,22 @@ if (($files = glob($slq_import_path.'/*.sql')) != false)
if ($db->db_num_rows($result) > 0)
{
$mailcontent .= 'Die Abfrage der Datei "'.$filename.'" hat folgendes Ergebnis geliefert:
';
+
// Wenn zu viele Datensätze retourniert werden, abbrechen und Meldung ausgeben
if ($db->db_num_rows($result) > 1000)
$mailcontent .= 'ACHTUNG! Es wurden mehr als 1000 Datensätze zurückgegeben
';
$mailcontent .= '';
- foreach($db->db_fetch_object($result) AS $key => $value)
+ $array = array();
+ $object = $db->db_fetch_object($result);
+ $row_array = get_object_vars($object);
+ foreach($row_array AS $key => $value)
{
$mailcontent .= '| '.$key.' | ';
- continue;
}
$mailcontent .= '
';
$counter = 0; // Wenn mehr als 1000 Datensätze retourniert werden, abbrechen
+ $result = $db->db_query ($sql);
while($row = $db->db_fetch_object($result))
{
if ($counter == 1000)
@@ -126,7 +131,7 @@ if (($files = glob($slq_import_path.'/*.sql')) != false)
$mailcontent .= '';
$counter++;
}
- $mailcontent .= '
';
+ $mailcontent .= '';
}
}
}