Skip to content

Commit

Permalink
Fix 0009804: history_get_events not working: removing history_get_eve…
Browse files Browse the repository at this point in the history
…nts - this has been replaced by either:

a) history_get_events_array (returns formatted array)
b) history_get_raw_events_array ( returns raw data)
  • Loading branch information
mantis committed Nov 30, 2008
1 parent 4e97881 commit 25f3cfe
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions core/history_api.php
Expand Up @@ -76,23 +76,6 @@ function history_log_event_special( $p_bug_id, $p_type, $p_optional = '', $p_opt
$result = db_query_bound( $query, Array( $t_user_id, $c_bug_id, db_now(), $c_type, $c_optional, $c_optional2, '' ) );
}

# --------------------
# return all bug history for a given bug id ordered by date
function history_get_events( $p_bug_id ) {
$t_mantis_bug_history_table = db_get_table( 'mantis_bug_history_table' );
$t_mantis_user_table = db_get_table( 'mantis_user_table' );

$c_bug_id = db_prepare_int( $p_bug_id );

$query = "SELECT b.*, u.username
FROM $t_bug_history_table b
LEFT JOIN $t_mantis_user_table u
ON b.user_id=u.id
WHERE bug_id=" . db_param() . "
ORDER BY date_modified DESC";
$result = db_query_bound( $query, Array( $c_bug_id ) );
}

# --------------------
# Retrieves the history events for the specified bug id and returns it in an array
# The array is indexed from 0 to N-1. The second dimension is: 'date', 'username',
Expand Down

0 comments on commit 25f3cfe

Please sign in to comment.