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?
Adding ETA to View Issues Display
Moderators: Developer, Contributor
Try adding the following function to core/columns_api.php
Let me know how it goes.
Regards,
Victor
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>';
}
Regards,
Victor