From ef8b6f7a1fa16e5ae1eb8d8b77418e5734fffc3d Mon Sep 17 00:00:00 2001 From: OpenXE <> Date: Mon, 7 Nov 2022 16:23:16 +0100 Subject: [PATCH] Bugfix produktion list --- www/pages/produktion.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/pages/produktion.php b/www/pages/produktion.php index 94476c5f..08c56e54 100644 --- a/www/pages/produktion.php +++ b/www/pages/produktion.php @@ -74,11 +74,11 @@ class Produktion { (" . $app->YUI->IconsSQL_produktion('p') . ") AS `icons`, p.id FROM produktion p - INNER JOIN produktion_position pp ON pp.produktion = p.id - INNER JOIN artikel a ON pp.artikel = a.id + LEFT JOIN produktion_position pp ON pp.produktion = p.id + LEFT JOIN artikel a ON pp.artikel = a.id "; - $where = " pp.stuecklistestufe = 1 "; + $where = " (pp.stuecklistestufe = 1 OR pp.stuecklistestufe IS NULL) "; $count = "SELECT count(DISTINCT p.id) FROM produktion p INNER JOIN produktion_position pp ON pp.produktion = pp.id WHERE $where"; // $groupby = "";