Skip to content

Commit 150e9f7

Browse files
committedJan 12, 2013
Fix #15370: When a bug is resolved on report, default the handler to the
current user
1 parent 4d90707 commit 150e9f7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎bug_report.php

+6
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@
184184
# Allow plugins to pre-process bug data
185185
$t_bug_data = event_signal( 'EVENT_REPORT_BUG_DATA', $t_bug_data );
186186

187+
# Ensure that resolved bugs have a handler
188+
if ( $t_bug_data->handler_id == 0 && $t_bug_data->status >= config_get( 'bug_resolved_status_threshold' ) ) {
189+
$t_bug_data->handler_id = auth_get_current_user_id();
190+
}
191+
192+
187193
# Create the bug
188194
$t_bug_id = $t_bug_data->create();
189195

0 commit comments

Comments
 (0)
Please sign in to comment.