Post about your customizations to share with others.
Moderators: Developer , Contributor
duwil
Posts: 46 Joined: 08 Jul 2008, 12:14
Post
by duwil » 14 Oct 2010, 13:47
My installation is still R1.1.6 so I don't know if this is the same in others... My problem was to CSV export the "build" field, after the customization (csv_columns) I got an error on export. I think there is bug I solved adding the following lines in custom_functions_inc.php:
Code: Select all
function print_column_title_build( $p_sort, $p_dir, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE )
{ if ( $p_columns_target != COLUMNS_TARGET_CSV_PAGE )
{ echo '<td>';
print_view_bug_sort_link( lang_get( 'build' ), 'build', $p_sort, $p_dir, $p_columns_target );
print_sort_icon( $p_dir, $p_sort, 'build' );
echo '</td>';
}
else
{ echo lang_get( 'build' ); }
}
function csv_format_build( $p_build )
{ return csv_escape_string( $p_build ); }
I'm not an expert so any further investigation from someone more expert will be greatly appreciated.
TIA
---
atrol
Site Admin
Posts: 8536 Joined: 26 Mar 2008, 21:37
Location: Germany
Post
by atrol » 16 Oct 2010, 14:30
duwil wrote: My installation is still R1.1.6 so I don't know if this is the same in others.
In version 1.2.3 this function is included in columns_api.php