var_dump($p_row['date_modified']) = null
Since it gets null, it displays the default date Jan-01-70, even i can get the data. Here is my screen:
Uploaded with
ImageShack.us
This is my revision in filter_api.php. Mantis_group_table and
$t_where_clauses = array( "$t_project_table.enabled = 1", "$t_project_table.id = $t_bug_table.project_id" );
$t_select_clauses = array( "$t_bug_table.*,COALESCE($t_mantis_tag_table_name.[name],N'') AS [Tag],
COALESCE($t_mantis_group_table_name.[groupname],N'') AS [Role],
MAX($t_mantis_bug_history_table_name.date_modified),
$t_custom_field_string_table.value");
$t_join_clauses = array("LEFT JOIN $t_mantis_bug_tag_table $t_mantis_bug_tag_table_name ON $t_mantis_bug_tag_table_name.bug_id = $t_bug_table.id
LEFT JOIN $t_mantis_tag_table $t_mantis_tag_table_name
ON $t_mantis_tag_table_name.id = $t_mantis_bug_tag_table_name.tag_id
LEFT JOIN $t_mantis_project_user_list_table $t_mantis_project_user_list_table_name ON
$t_mantis_project_user_list_table_name.user_id = $t_bug_table.handler_id
AND $t_mantis_project_user_list_table_name.project_id = $t_bug_table.project_id
LEFT JOIN $t_mantis_group_table $t_mantis_group_table_name ON $t_mantis_group_table_name.id = $t_mantis_project_user_list_table_name.group_id
LEFT JOIN $t_mantis_bug_history_table $t_mantis_bug_history_table_name ON $t_mantis_bug_history_table_name.bug_id = $t_bug_table.id
LEFT JOIN $t_custom_field_string_table ON $t_custom_field_string_table.bug_id = $t_bug_table.id
AND $t_custom_field_string_table.field_id = 20
");
$query2 = "SELECT DISTINCT $t_select
$t_from
$t_join
$t_where AND $t_mantis_bug_history_table_name.field_name = 'status'
GROUP BY $t_mantis_bug_table.bug_text_id, $t_mantis_bug_table.build,
$t_mantis_bug_table.category, $t_mantis_bug_table.date_submitted,
$t_mantis_bug_table.duplicate_id,$t_mantis_bug_table.eta,
$t_mantis_bug_table.fixed_in_version, $t_mantis_bug_table.handler_id,
$t_mantis_bug_table.id,$t_mantis_bug_table.last_updated,
$t_mantis_bug_table.os,$t_mantis_bug_table.os_build,
$t_mantis_bug_table.platform,$t_mantis_bug_table.priority,
$t_mantis_bug_table.profile_id, $t_mantis_bug_table.project_id,
$t_mantis_bug_table.projection,$t_mantis_bug_table.reopen_count,
$t_mantis_bug_table.reporter_id,$t_mantis_bug_table.reproducibility,
$t_mantis_bug_table.resolution,$t_mantis_bug_table.severity,
$t_mantis_bug_table.sponsorship_total,$t_mantis_bug_table.status,
$t_mantis_bug_table.sticky,$t_mantis_bug_table.summary,
$t_mantis_bug_table.target_version,$t_mantis_bug_table.version,
$t_mantis_bug_table.view_state, $t_mantis_group_table_name.groupname,
$t_custom_field_string_table.value, $t_mantis_tag_table_name.name
$t_order ";