Showing status as a word

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Guest

Showing status as a word

Post by Guest »

Hi,

In 1.0a3 the view_all_bug_page.php shows a number of columns per bug. I would like to change a column that's already there and doesn't suit me:

The "status" column currently returns nothing if the bug hasn't been assigned and the assigned user's name if it has. I would like to see the actual status as a word in this column. (e.g. "New" or "Feedback").

I know the columns can be overridden by overriding the get_columns_to_view() from the custom functions API, but there doesn't seem to be a possibility for showing the status as a word from here. Is there a way to do this or does it require a lot of work from a pro (which I'm not)? I can remember it used to be there in an older version of Mantis...
Guest

Post by Guest »

Since no one seems to know the answer, I'll post it here:

The feature still exists but is commented out in the "print_column_status" function. You can find it in the columns_api at line 517. If you only want to show the status in words add a line that looks something like this:
printf( '%s, ', get_enum_element( 'status', $p_row['status'] ) );
Post Reply