X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FIC.pm;h=50c1172b0a8fcb49acdc9f70ff421668660460d7;hb=544f83800e6f90112934ba965970eec9da7d8f5d;hp=426fc9fc3f9ff00998c308dddd05c30002e7dbdf;hpb=6be015fafb81c9553f44b8e06ec3812ba6befe9e;p=kivitendo-erp.git diff --git a/SL/IC.pm b/SL/IC.pm index 426fc9fc3..50c1172b0 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -937,7 +937,9 @@ sub all_parts { #my $order_clause = " ORDER BY $form->{sort} $sort_order"; - my $limit_clause = " LIMIT 100" if $form->{top100}; + my $limit_clause; + $limit_clause = " LIMIT 100" if $form->{top100}; + $limit_clause = " LIMIT " . $form->{limit} * 1 if $form->{limit} * 1; #=== joins and complicated filters ========#