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 4d90707 commit 150e9f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bug_report.php
Expand Up @@ -184,6 +184,12 @@
# 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' ) ) {
$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 150e9f7

Please sign in to comment.