Skip to content

Commit

Permalink
Fix #15370: When a bug is resolved on report, default the handler to the
Browse files Browse the repository at this point in the history
current user
  • Loading branch information
rombert committed Jan 12, 2013
1 parent 1e70c3c commit e20564d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bug_report.php
Expand Up @@ -134,6 +134,11 @@

# Allow plugins to pre-process bug data
$t_bug_data = event_signal( 'EVENT_REPORT_BUG_DATA', $t_bug_data );

# Ensure that resolved bugs have a handler
if ( $t_bug_data->handler_id == 0 && $t_bug_data->status >= config_get( 'bug_resolved_status_threshold' ) ) {

This comment has been minimized.

Copy link
@dregad

dregad Jan 13, 2013

Member

I think it'd be better to use == NO_USER instead of a 'magic' constant.

This comment has been minimized.

Copy link
@rombert

rombert Jan 13, 2013

Author Member

I wasn't aware of NO_USER, I'll use that instead.

Thanks!

$t_bug_data->handler_id = auth_get_current_user_id();
}

# Create the bug
$t_bug_id = $t_bug_data->create();
Expand Down

0 comments on commit e20564d

Please sign in to comment.