Dependency Graph

Dependency Graph
related to related to child of child of duplicate of duplicate of

View Issue Details

IDProjectCategoryView StatusLast Update
0009904mantisbtcsvpublic2009-06-26 12:02
Reportertmatijas Assigned Tovboctor  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionduplicate 
Product Version1.1.4 
Summary0009904: Feilds like 'BUILD' get 'undefined function print_column_title_build()' when export to csv. KNOWN issue / FIX in 1.2 NOT 1.1.x
Description

When you add some feilds like 'build' to the array for csv export in the config_inc.php file under $g_csv_columns = array, you get this is excell:

Fatal error: Call to undefined function print_column_title_build() in C:\Inetpub\wwwroot\gsetracking\csv_export.php on line 83 in excel.

I see there was an attempt and a fix in version 1.2.x for this and it works.. Also added an excel export which also works. However, NO FIX has been ported to version 1.1.4 and 1.1.5

I attempted to merge some code from 1.2x to see if I could fix this but have been unsuccessful. Example is some lines in csv_api.php.. Lines like This were added in 1.2.x that were not in 1.1.x

--------------------

return the os build (os version) SLAV - ADDED FROM 1.2

function csv_format_build( $p_build ) {
return csv_escape_string( $p_build );
}

there are 3 other added functions including lines like the above which deal with $p_summary, $p_steps_to_reproduce and $p_additional_information... There was also a change to a function called function csv_escape_string

Obviously mantis developers are aware of this problem and fixed it in 1.2 ... Is there a plan to fix this in 1.6? Also, Got any diff files I can use to fix?

Steps To Reproduce

Add ,'build' to the $g_csv_columns in config_inc.php and then try to export a csv file on any ticket. You will get the error in excell or any editor you use to open csv.

TagsNo tags attached.

Relationships

duplicate of 0008874 closedvboctor Provide the ability to add "build" column to View Issues, Print Issues, and CSV export 

Activities

tmatijas

tmatijas

2008-11-26 17:21

reporter   ~0020071

Sorry, typo - Is there a plan to fix this in version 1.1.6?. Also, Got any diff files I can use to fix?

vboctor

vboctor

2008-11-27 02:36

manager   ~0020076

See the patch linked to from 0008874

tmatijas

tmatijas

2008-11-30 11:47

reporter   ~0020157

Vboctor. Thank you buddy, I appreciate your help. Patch from 0000074 worked like a charm...

stevenchew

stevenchew

2009-04-20 05:27

reporter   ~0021601

Sorry, I don't quite get it. Does it mean that it is fixed in version 1.1.6? I tried to patch the 3 files from 0008874 but it didn't work on the version 1.1.6 I am using.