From 2a806e7484cdc87b41d2566fc77bf319f7dac6c0 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 7 Oct 2007 13:29:59 +0000 Subject: [PATCH] fixed only partcial csv export in timesheet, get_rows was not using the num_rows parameter --- etemplate/inc/class.so_sql.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.so_sql.inc.php b/etemplate/inc/class.so_sql.inc.php index 4b5ed97200..b05c3c2094 100644 --- a/etemplate/inc/class.so_sql.inc.php +++ b/etemplate/inc/class.so_sql.inc.php @@ -838,7 +838,8 @@ class so_sql } } $rows = (array) $this->search($criteria,false,$query['order']?$query['order'].' '.$query['sort']:'', - '','%',false,'OR',(int)$query['start'],$query['col_filter'],$join,$need_full_no_count); + '','%',false,'OR',$query['num_rows']?array((int)$query['start'],$query['num_rows']):(int)$query['start'], + $query['col_filter'],$join,$need_full_no_count); return $this->total; }