Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e20564d

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎bug_report.php

+5
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@
134134

135135
# Allow plugins to pre-process bug data
136136
$t_bug_data = event_signal( 'EVENT_REPORT_BUG_DATA', $t_bug_data );
137+
138+
# Ensure that resolved bugs have a handler
139+
if ( $t_bug_data->handler_id == 0 && $t_bug_data->status >= config_get( 'bug_resolved_status_threshold' ) ) {
Has conversations. Original line has conversations.
140+
$t_bug_data->handler_id = auth_get_current_user_id();
141+
}
137142

138143
# Create the bug
139144
$t_bug_id = $t_bug_data->create();

0 commit comments

Comments
 (0)
Please sign in to comment.