View Issue Details

IDProjectCategoryView StatusLast Update
0004914mantisbtbugtrackerpublic2004-12-11 03:01
Reporterpacketeer Assigned Tothraxisp  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.19.1 
Fixed in Version0.19.2 
Summary0004914: On reopen, notification mail is sent to the old handler instead of the new handler.
Description

The bug is the logic of function bug_reopen updates Status, Resolution and Note, but it doesn't update new handler_id.

The proper fix should be in the function bug_reopen of ../core/bug_api.php. As I am reluctant to change the core functions, a quick fix can be implemented in bug_update.php instead. The fix is, before calling bug_reopen in bug_update.php, add the line as follows:

        bug_set_field( $f_bug_id, 'handler_id', $t_bug_data->handler_id );     # fix: update handler_id before calling bug_reopen

        bug_reopen( $f_bug_id, $f_bugnote_text );
        etc...

I suggest this be fix in ../core/bug_api.php in the next version.

TagsNo tags attached.

Activities

thraxisp

thraxisp

2004-11-30 08:52

reporter   ~0008456

fixed in CVS

packeteer

packeteer

2004-11-30 21:18

reporter   ~0008463

It's not clear whether the fix was made on the core function bug_reopen.
The proposed fix on this issue is only for a quick fix. Suggest the
Mantis team implement a proper fix in bug_reopen, if it has not been
done so.

Please feedback

thraxisp

thraxisp

2004-12-01 11:18

reporter   ~0008476

The fix was made in bug_update.php, rather than core/bug_api.php. The other functions in bug_api tend to just update the status and email the status change, The possibility of updating the assignee was introduced in 0.19.0 as a side effect of consolidating the changes in status to bug_change_status_page.php. bug_update.php handles most of the mechanics of any change policies.

packeteer

packeteer

2004-12-01 19:10

reporter   ~0008488

It's your call at the end of the day where to put the fix in. What we suggest is that new handler_id should be updated in bug_reopen together with Resolution, Status and Note. So that, together these items can be passed onto the mail notification at reopen.

thraxisp

thraxisp

2004-12-02 08:57

reporter   ~0008496

The mail notification refetches the bug data (from cache) when it generates the message. It's really not necessary to pass things like the handler_id to the email routine.