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:
e325dbd
)
lower(spalte) und ähnliche ausdrücke dürfen nicht in UNIONS zum sortieren benutzt...
author
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 14 May 2009 11:21:09 +0000
(11:21 +0000)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Thu, 14 May 2009 11:21:09 +0000
(11:21 +0000)
Fix für Bug 981
SL/CT.pm
patch
|
blob
|
history
diff --git
a/SL/CT.pm
b/SL/CT.pm
index
1522e0f
..
606c46a
100644
(file)
--- a/
SL/CT.pm
+++ b/
SL/CT.pm
@@
-44,6
+44,7
@@
use SL::CVar;
use SL::DBUtils;
use SL::FU;
use SL::Notes;
+use List::MoreUtils qw(true);
sub get_tuple {
$main::lxdebug->enter_sub();
@@
-704,7
+705,7
@@
sub search {
$form->{sort} = $sortorder;
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
-
if ($sortorder ne 'id'
) {
+
if ($sortorder ne 'id' && 1 >= true { $form->{$_} } qw(l_ordnumber l_quonumber l_invnumber)
) {
$sortorder = "lower($sortorder) ${sortdir}";
} else {
$sortorder .= " ${sortdir}";