Skip to content

Commit

Permalink
Fix Bug #12489: resolution is not updated on re-open
Browse files Browse the repository at this point in the history
	The reopen resolution must be set for everyone with permission to
	reopen an issue.  Not just the reporter.
  • Loading branch information
Daryn Warriner committed Nov 30, 2010
1 parent 6baa601 commit dd45535
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bug_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,15 @@
$t_existing_bug->reporter_id === auth_get_current_user_id() &&
config_get( 'allow_reporter_reopen' ) ) {
$t_can_bypass_status_access_thresholds = true;
$t_updated_bug->resolution = config_get( 'bug_reopen_resolution' );
}
if ( !$t_can_bypass_status_access_thresholds ) {
trigger_error( ERROR_ACCESS_DENIED, ERROR );
}
}
if( $t_reopen_issue ) {
# for everyone allowed to reopen an issue, set the reopen resolution
$t_updated_bug->resolution = config_get( 'bug_reopen_resolution' );
}
}

# Validate any change to the handler of an issue.
Expand Down

0 comments on commit dd45535

Please sign in to comment.