View Issue Details

IDProjectCategoryView StatusLast Update
0005515mantisbtcustomizationpublic2011-08-29 07:05
ReporterRudboy Assigned Torombert  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version1.0.0a1 
Summary0005515: view reporter in bug-list
Description

How to have the Reporter in the bug list in Mantis this version.

Can you help me?

Additional Information

I had read the bug "0003952", but it's not possible in Mantis 1.0.0a1

TagsNo tags attached.
Attached Files
Bug_List.zip (26,915 bytes)

Relationships

duplicate of 0000934 closedvboctor Would be nice to select what columns to view 

Activities

Alex007

Alex007

2005-04-27 09:07

reporter   ~0009937

I did that:

  1. In core\columns_api.php add these strings:

    function print_column_title_reporter_id( $p_sort, $p_dir, $p_print = false ) {
    echo '<td class="center">';
    print_view_bug_sort_link( lang_get( 'reporter' ), 'reporter_id', $t_sort, $t_dir );
    print_sort_icon( $t_dir, $t_sort, 'reporter_id' );
    echo '</td>';
    }

    function print_column_reporter_id( $p_row, $p_print = false ) {
    echo '<td class="center">';
    if(1==$v_reporter_id) echo ' ';
    else echo user_get_name( $v_reporter_id );
    echo '</td>';
    }

  2. In function custom_function_default_get_columns_to_view in core\custom_function_api.php add this:
    $t_columns[] = 'reporter_id';

But it works incorrect. The column named 'Reporter' is added, but it contains only 'user0' values

Rudboy

Rudboy

2005-04-28 07:29

reporter   ~0009943

You're solution is OK, You simply have to modify the program as follows :

function print_column_reporter_id( $p_row, $p_print = false ) {
echo '<td class="center">';
if(1==$v_reporter_id) echo ' ';
#else echo user_get_name( $v_reporter_id );
else echo prepare_user_name( $p_row['reporter_id'] );
echo '</td>';
}

Rudboy

Rudboy

2005-04-28 07:34

reporter   ~0009944

So I have upgraded Mantis in 1.0.0a2, but it don't change the problem...
Thanks Alex007, for your answer who, with a little modification, correct my problem

show note (0009943)

Alex007

Alex007

2005-04-28 09:25

reporter   ~0009948

10x to Rudboy. It's realy works!!!

rombert

rombert

2011-07-30 08:22

reporter   ~0029323

This is available with 1.2.x .