Index: core/custom_function_api.php =================================================================== --- core/custom_function_api.php (revision 5412) +++ core/custom_function_api.php (working copy) @@ -137,6 +137,8 @@ # Register a checkin in source control by adding a history entry and a note # This can be overriden to do extra work. # The issue status/resolution would only be set if the issue is fixed, and hence $p_fixed is passed as true. + # @todo by giallu: check if we can remove $p_fixed param, since we should + # have everything needed to determine if issue is fixed or not function custom_function_default_checkin( $p_issue_id, $p_comment, $p_file, $p_new_version, $p_fixed ) { if ( bug_exists( $p_issue_id ) ) { history_log_event_special( $p_issue_id, CHECKIN, $p_file, $p_new_version ); @@ -146,6 +148,13 @@ if ( ( OFF != $t_status ) && $p_fixed ) { bug_set_field( $p_issue_id, 'status', $t_status ); bug_set_field( $p_issue_id, 'resolution', config_get( 'source_control_set_resolution_to' ) ); + + if ( $t_status == 'CLOSED' ) { + email_close( $p_issue_id ); + } + else if ( bug_is_resolved( $p_issue_id ) ) { + email_resolved( $p_issue_id ); + } } } } Index: config_defaults_inc.php =================================================================== --- config_defaults_inc.php (revision 5412) +++ config_defaults_inc.php (working copy) @@ -1249,7 +1249,7 @@ # For open source projects it is expected that the notes be public, however, # for non-open source it will probably be VS_PRIVATE. - $g_source_control_notes_view_status = VS_PRIVATE; + $g_source_control_notes_view_status = VS_PUBLIC; # Account to be used by the source control script. The account must be enabled # and must have the appropriate access level to add notes to all issues even