From: <lex...@us...> - 2005-04-28 12:07:35
|
Update of /cvsroot/egroupware/jinn/inc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23556/inc Modified Files: class.uiu_export.inc.php Log Message: fixed export to csv bug where disabled columns were included when selecting ALL columns Index: class.uiu_export.inc.php =================================================================== RCS file: /cvsroot/egroupware/jinn/inc/class.uiu_export.inc.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** class.uiu_export.inc.php 8 Apr 2005 16:27:22 -0000 1.7 --- class.uiu_export.inc.php 28 Apr 2005 12:07:23 -0000 1.8 *************** *** 192,209 **** switch($_POST[columns]) { ! case 'select': ! $columns_arr = $this->bo->common->filter_array_with_prefix($_POST,'col_'); ! break; ! default: ! $columns = $this->bo->so->site_table_metadata($this->bo->session['site_id'], $this->bo->site_object['table_name']); ! if(is_array($columns)) ! { ! $columns_arr = array(); ! foreach($columns as $column) { $columns_arr[] = $column[name]; } ! } ! break; } --- 192,212 ---- switch($_POST[columns]) { ! case 'select': ! $columns_arr = $this->bo->common->filter_array_with_prefix($_POST,'col_'); ! break; ! default: ! $columns = $this->bo->so->site_table_metadata($this->bo->session['site_id'], $this->bo->site_object['table_name']); ! if(is_array($columns)) ! { ! $columns_arr = array(); ! foreach($columns as $column) ! { ! if($this->bo->field_is_enabled($this->bo->site_object[object_id], $column[name])) { $columns_arr[] = $column[name]; } ! } ! } ! break; } |