View Issue Details

IDProjectCategoryView StatusLast Update
0009804mantisbtotherpublic2009-01-15 11:26
Reporterdeboutv Assigned Tograngeway  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.1.0 
Fixed in Version1.2.0a3 
Summary0009804: history_get_events not working
Description

The history_get_events function is not functional, it returns nothing (but it should) and the SQL query is wrong. In additional information the fixed function.

Additional Information

function history_get_events( $p_bug_id ) {
$t_mantis_bug_history_table = config_get( 'mantis_bug_history_table' );

$c_bug_id = db_prepare_int( $p_bug_id );

$query = "SELECT *
        FROM $t_mantis_bug_history_table
        WHERE bug_id='$c_bug_id'
        ORDER BY date_modified DESC";
$result = db_query( $query );
return $result;

}

Tagspatch

Activities

vboctor

vboctor

2008-11-12 17:27

manager   ~0019859

Targetting for 1.1.5 until the code is verified.

vboctor

vboctor

2008-11-14 01:36

manager   ~0019880

It seems to me that history_get_events() is no longer used. Is there a reason you can't use history_get_events_array() instead?

vboctor

vboctor

2008-11-14 02:00

manager   ~0019883

No longer targetting for 1.1.5.

deboutv

deboutv

2008-11-14 03:41

reporter   ~0019887

history_get_events_array does not provide raw data (data are already translated and formatted).

Here is an application: http://bugtracker.morinie.fr/mantis/dokuwiki/doku.php?id=mantis:start:customization:functions:assigned to display a new column in the View Issues page with the assigned date.

grangeway

grangeway

2008-11-29 11:29

reporter   ~0020129

Deboutv,

history_get_raw_events_array should give you the unmodified data. Is there something that history_get_raw_events_array does not provide?

Paul

grangeway

grangeway

2008-11-30 07:24

reporter   ~0020151

I've dumped the old function in favour of history_get_raw_events_array which seems to be a more sensible implementation, and should return the unformatted data

Paul

Related Changesets

MantisBT: master 25f3cfea

2008-11-30 07:22

Paul Richards


Details Diff
Fix 0009804: history_get_events not working: removing history_get_events - this has been replaced by either:

a) history_get_events_array (returns formatted array)
b) history_get_raw_events_array ( returns raw data)
Affected Issues
0009804
mod - core/history_api.php Diff File