projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d0e997
)
Im Kunden-/Lieferantenstammdatenbericht nicht nach Groß- und Kleinschreibung untersch...
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 24 Jun 2008 14:02:50 +0000
(14:02 +0000)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 24 Jun 2008 14:02:50 +0000
(14:02 +0000)
SL/CT.pm
patch
|
blob
|
history
diff --git
a/SL/CT.pm
b/SL/CT.pm
index
b61a07a
..
0468c37
100644
(file)
--- 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 ?";