From 1f14e3b993baf8fef33d74cf94ddcf27ba77ec59 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 24 Jun 2008 14:02:50 +0000 Subject: [PATCH] =?utf8?q?Im=20Kunden-/Lieferantenstammdatenbericht=20nich?= =?utf8?q?t=20nach=20Gro=C3=9F-=20und=20Kleinschreibung=20unterscheiden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/CT.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SL/CT.pm b/SL/CT.pm index b61a07a63..0468c379d 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -686,7 +686,12 @@ sub search { $form->{sort} && $allowed_sort_columns{$form->{sort}} ? $form->{sort} : "name"; $form->{sort} = $sortorder; - $sortorder = "country,city,street" if ($sortorder eq "address"); + + if ($sortorder eq "address") { + $sortorder = "lower(country), lower(city), lower(street)"; + } elsif ($sortorder ne 'id') { + $sortorder = "lower($sortorder)"; + } if ($form->{"${cv}number"}) { $where .= " AND ct.${cv}number ILIKE ?"; -- 2.20.1