"fix for bug #2032: Custon fields data do not export to CVS

(fix not necessary in trunk, as we use so_sql_cf there, which always reads the cf's)"
This commit is contained in:
Ralf Becker 2009-04-06 06:26:56 +00:00
parent 403913f1ae
commit 8b07ed7ad0

View File

@ -535,8 +535,8 @@ class timesheet_ui extends timesheet_bo
unset($query['col_filter'][0]);
// query cf's for the displayed rows
if ($ids && $this->customfields &&
in_array('customfields',$cols_to_show=explode(',',$GLOBALS['egw_info']['user']['preferences'][TIMESHEET_APP]['nextmatch-timesheet.index.rows'])))
if ($ids && $this->customfields && ($query_in['csv_export'] ||
in_array('customfields',$cols_to_show=explode(',',$GLOBALS['egw_info']['user']['preferences'][TIMESHEET_APP]['nextmatch-timesheet.index.rows']))))
{
$cfs = $this->read_cfs($ids,$cols_to_show);
}