Skip to content

Commit

Permalink
Mail Reporter dropdown list now shows all users
Browse files Browse the repository at this point in the history
  • Loading branch information
SL-Gundam committed Apr 3, 2015
1 parent 5ebd287 commit c9daf75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/config_api.php
Expand Up @@ -782,20 +782,19 @@ function ERP_custom_function_print_projects_option_list( $p_sel_value )
function ERP_custom_function_print_reporter_option_list( $p_sel_value )
{
$t_user_ids = (array) $p_sel_value;
$t_report_bug_threshold = config_get_global( 'report_bug_threshold' );

if ( !empty( $t_user_ids ) )
{
foreach ( $t_user_ids AS $t_single_user_id )
{
if ( !user_exists( $t_single_user_id ) || !access_has_global_level( $t_report_bug_threshold, $t_single_user_id ) )
if ( !user_exists( $t_single_user_id ) )
{
echo '<option value="' . $t_single_user_id . '" selected class="negative">' . plugin_lang_get( 'missing_user', 'EmailReporting' ) . '</option>';
}
}
}

print_user_option_list( $t_user_ids, ALL_PROJECTS, $t_report_bug_threshold );
print_user_option_list( $t_user_ids, ALL_PROJECTS );
}

# --------------------
Expand Down
1 change: 1 addition & 0 deletions doc/CHANGELOG.bug_report_mail.txt
Expand Up @@ -97,6 +97,7 @@ Dec 2014 - EmailReporting-0.9.0-DEV
- Incase of empty filenames will try to set the extension based on mimetype
- Fixed IMAP encryption issue in case the default IMAPS port is used
- Corrected variable used for access level of Mail reporter user during installation
- Mail Reporter dropdown list now shows all users

Nov 2010 - EmailReporting-0.8.4
- Improved the project category list
Expand Down

0 comments on commit c9daf75

Please sign in to comment.