From 09221829d6900f1e502a2abadec5e88b7618a186 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Thu, 14 May 2009 12:25:29 +0000 Subject: [PATCH] List::MoreUtils durch einen einfachen ausdruck ersetzt. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix für den aufgemachten Bug 906. --- SL/CT.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/CT.pm b/SL/CT.pm index 606c46a49..a997bfe35 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -44,7 +44,6 @@ use SL::CVar; use SL::DBUtils; use SL::FU; use SL::Notes; -use List::MoreUtils qw(true); sub get_tuple { $main::lxdebug->enter_sub(); @@ -705,7 +704,7 @@ sub search { $form->{sort} = $sortorder; my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC'; - if ($sortorder ne 'id' && 1 >= true { $form->{$_} } qw(l_ordnumber l_quonumber l_invnumber)) { + if ($sortorder ne 'id' && 1 >= scalar grep { $form->{$_} } qw(l_ordnumber l_quonumber l_invnumber)) { $sortorder = "lower($sortorder) ${sortdir}"; } else { $sortorder .= " ${sortdir}"; -- 2.20.1