Adding ETA to View Issues Display

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
lzoumas
Posts: 3
Joined: 02 Nov 2006, 08:56

Adding ETA to View Issues Display

Post by lzoumas »

Hi,

I have a question about the ETA field in Mantis 1.05.

I have gotten the ETA to display simply by adding the following line to the function:

custom_function_default_get_columns_to_view

of

$t_columns[] = 'eta';

It works fine in View Issues, but it always displays '10.'

I checked in the mantis_bug_table and surely enough every eta field is indeed '10'.

Is this a foreign key or am I missing something. When I update an eta field in the program the value in the View Issues is still 10.

2 Questions:

Am I missing something?
What am I missing?
vboctor
Site Admin
Posts: 1293
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

Post by vboctor »

Try adding the following function to core/columns_api.php

Code: Select all

	# --------------------
	# $p_columns_target: see COLUMNS_TARGET_* in constant_inc.php
	function print_column_eta( $p_row, $p_columns_target = COLUMNS_TARGET_VIEW_PAGE ) {
		echo '<td class="center">', get_enum_element( 'eta', $p_row['eta'] ), '</td>';
	}
Let me know how it goes.

Regards,
Victor
lzoumas
Posts: 3
Joined: 02 Nov 2006, 08:56

Post by lzoumas »

Thank you. Will try it today and let you know how it goes.
lzoumas
Posts: 3
Joined: 02 Nov 2006, 08:56

Post by lzoumas »

Well now it says 'none' instead of '10'.

It still doesn't seem to take notice of what week is set in the eta field when I update an issue.

If there is no quick fix then maybe I will wait until the 1.0 version get out of beta?
Post Reply