I use Mantis v 1.0.8
I want to add a column in csv export, the column is "description" of "mantis_bug_text_table".
First i add in the function custom_function_default_get_columns_to_view the column description, file custom_function_api.php.
Then i have an error "function print_column_title_description don't exist in ...." so i create this function :
- Code: Select all
# --------------------
# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
function print_column_title_description( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
global $t_icon_path;
$t_description = string_attribute( $p_row['description'] );
echo 'Description ', $t_description;
}
in columns_api.php
Then another error "function csv_format_description don't existe" so i create in cvs_api.php
- Code: Select all
# --------------------
# return the status string
function csv_format_description( $p_description ) {
return csv_escape_string( $p_description );
}
Then i can have a cvs file with description title column but nothing inside ??
What i need to change, to make it work fine??
Thanks.
