Page 1 of 1

Adding ETA to View Issues Display

Posted: 02 Nov 2006, 09:03
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?

Posted: 03 Nov 2006, 07:23
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

Posted: 03 Nov 2006, 09:13
by lzoumas
Thank you. Will try it today and let you know how it goes.

Posted: 07 Nov 2006, 10:22
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?