see author names in "View Issues" list

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
eightn
Posts: 5
Joined: 09 Aug 2005, 13:07

see author names in "View Issues" list

Post by eightn »

Can I turn on feature to see author name of issues in "Viewing Issues" listing?
kmet
Posts: 13
Joined: 13 Apr 2005, 10:37

Post by kmet »

vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Checkout the following post on my blog:

Customising View Issues, Print Issues and CSV Export
http://www.futureware.biz/blog/index.ph ... &tb=1&pb=1

Regards,
Victor
MantisConnect
http://www.futureware.biz/mantisconnect/
eightn
Posts: 5
Joined: 09 Aug 2005, 13:07

Post by eightn »

Thanks!
This is simple :)

1. Create custom_functions_inc.php file in the root directory.

2. Place to this file function "function custom_function_default_get_columns_to_view" from file core/custom_function_api.php

3. rename function custom_function_default_get_columns_to_view to function custom_function_override_get_columns_to_view

4. add code

$t_columns[] = 'reporter_id';

before "$t_columns[] = 'category';" line
owen
Posts: 7
Joined: 20 Sep 2005, 07:22

Getting an error when I try this (Mantis 1.0.0rc2)

Post by owen »

I am using Mantis 1.0.0rc2

After I add this modification, I am able to login but all I get is this:

SYSTEM WARNING: Cannot modify header information - headers already sent by (output started at /home/owen/public_html/mantis/custom_functions_inc.php:44)


Note: when I first installed my modification, I was still logged in and I refreshed view_all_bug_page.php. The new column was visible, as expected, but I got the same error message displayed above the normal output.
owen
Posts: 7
Joined: 20 Sep 2005, 07:22

Post by owen »

NEVERMIND. Stupid whitespace after the php closing tag. Problem solved.
Post Reply