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:
9ae5631
)
Limit in all_parts ist nicht nur für top100 da.
author
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 9 Dec 2009 14:26:12 +0000
(15:26 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Wed, 9 Dec 2009 14:26:12 +0000
(15:26 +0100)
SL/IC.pm
patch
|
blob
|
history
diff --git
a/SL/IC.pm
b/SL/IC.pm
index
426fc9f
..
50c1172
100644
(file)
--- 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 ========#