From 566d2e3d39ec9f699aeb32b244ccb912b4c90718 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 23 Jul 2009 12:44:03 +0200 Subject: [PATCH] DO: open&close nicht angetickt > alles anzeigen --- SL/DO.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/DO.pm b/SL/DO.pm index e555dc273..e847f5e33 100644 --- a/SL/DO.pm +++ b/SL/DO.pm @@ -108,7 +108,8 @@ sub transactions { push @values, '%' . $form->{$item} . '%'; } - if (!($form->{open} && $form->{closed})) { + if (($form->{open} || $form->{closed}) && + ($form->{open} ne $form->{closed})) { push @where, ($form->{open} ? "NOT " : "") . "COALESCE(dord.closed, FALSE)"; } -- 2.20.1