From d5ec6ad0b820ffd8aff72787d2917dbc785a1dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96sterreicher?= Date: Mon, 9 Jan 2012 16:01:25 +0000 Subject: [PATCH] =?UTF-8?q?-=20Hackerl=20bei=20best=C3=A4tigten=20Ampeln?= =?UTF-8?q?=20hinzugef=C3=BCgt=20-=20Leiter=C3=BCbersicht=20zeigt=20nun=20?= =?UTF-8?q?korrekt=20alle=20zugeteilten=20Personen=20der=20Ampel=20an?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cis/private/tools/ampelleiteruebersicht.php | 2 +- cis/private/tools/ampelverwaltung.php | 2 +- include/ampel.class.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cis/private/tools/ampelleiteruebersicht.php b/cis/private/tools/ampelleiteruebersicht.php index 1b40ef5d1..7a035a2f4 100755 --- a/cis/private/tools/ampelleiteruebersicht.php +++ b/cis/private/tools/ampelleiteruebersicht.php @@ -183,7 +183,7 @@ foreach($ampel->result as $row) $status= ''; break; default: - $status= '-'; + $status= ''; break; } echo $status; diff --git a/cis/private/tools/ampelverwaltung.php b/cis/private/tools/ampelverwaltung.php index 7a322e44e..ba6d6e59a 100755 --- a/cis/private/tools/ampelverwaltung.php +++ b/cis/private/tools/ampelverwaltung.php @@ -133,7 +133,7 @@ foreach($ampel->result as $row) $status= ''; break; default: - $status= '-'; + $status= ''; break; } echo $status; diff --git a/include/ampel.class.php b/include/ampel.class.php index 8cd3afaf5..13b00ce5e 100755 --- a/include/ampel.class.php +++ b/include/ampel.class.php @@ -451,12 +451,12 @@ class ampel extends basis_db { // Alle Mitarbeiter dazu holen $qry = "SELECT - * + distinct on (tbl_ampel_benutzer_bestaetigt.ampel_benutzer_bestaetigt_id, a.uid) * FROM (".$row->benutzer_select.") a JOIN public.tbl_benutzerfunktion USING(uid) JOIN campus.vw_benutzer USING(uid) - LEFT JOIN public.tbl_ampel_benutzer_bestaetigt USING(uid) + LEFT JOIN public.tbl_ampel_benutzer_bestaetigt on(public.tbl_ampel_benutzer_bestaetigt.uid=a.uid AND ampel_id='".$row->ampel_id."') WHERE (tbl_ampel_benutzer_bestaetigt.ampel_id is null OR tbl_ampel_benutzer_bestaetigt.ampel_id='".$row->ampel_id."') AND