Page 1 of 1

Call to undefined function print_column_title_platform()

Posted: 19 May 2005, 15:07
by warde06
I am working with Mantis 1.0.0a2 and I just followed the instructions posted in the Customization topic "Select What Columns to View"

http://forums.mantisbt.org/viewtopic.ph ... tform#1018

I would like to add a column for os and platform (trying one at a time) I created the override file and added the line $t_columns[] = 'platform';

But now I get the following error and the column is not shown:
Fatal Error: Call to undefined function print_column_title_platform() in /usr/local/apache/htdocs/mantis10test/core/custom_function_api.php on line 205.

Any suggestions?

Posted: 20 May 2005, 16:25
by thraxisp
Two additional functions need to be supplied to add a new column (print_column_title_<column name>() and print_column_<column name>()).

Could you please file an issue on this since we should fall back to some representation, rather than error. The tracker is at http://bugs.mantisbt.org/ .

Posted: 21 May 2005, 21:05
by thraxisp
I added default routines to CVS.

Posted: 23 May 2005, 18:15
by warde06
Wonderful! That worked. Thank you very much for your help.

printing Description and Additional Information in CSV expor

Posted: 29 Jun 2005, 09:52
by langis
I followed all the examples to try to print the field Description and additional Information in the CSV export file, but I get a similar error:
undefined print_column_title_description function. Is it explained anywhere how to create the 2 additional functions you are describing in this problem?

Posted: 29 Jun 2005, 16:38
by thraxisp
See http://www.futureware.biz/blog/index.ph ... &tb=1&pb=1 for details on the overall process.

The simplest way to create the function is to clone a similar function from core/column_api.php .