Skip to content

Commit

Permalink
Check for usage of wrong field name "os_version"
Browse files Browse the repository at this point in the history
Issue #26840
  • Loading branch information
atrol committed Apr 13, 2020
1 parent 04ecd2b commit 3d5a365
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions admin/check/check_config_inc.php
Expand Up @@ -95,6 +95,22 @@
array( false => 'Issues moved may end up with invalid category id.' )
);

$t_field_options = array(
'bug_report_page_fields',
'bug_view_page_fields',
'bug_update_page_fields'
);

foreach( $t_field_options as $t_field_option ) {
$t_fields = config_get( $t_field_option, null, ALL_USERS, ALL_PROJECTS );
check_print_test_warn_row(
$t_field_option . ' configuration option does not contain "os_version"',
!in_array ( 'os_version', $t_fields ),
array( false => 'You need to replace "os_version" by "os_build" for the ' . $t_field_option . ' configuration option '
. '(see issue <a href="https://mantisbt.org/bugs/view.php?id=26840">#26840</a>).')
);
}

# Deprecated Settings
check_print_test_warn_row( 'Deprecated "limit_reporters" setting should no longer be used',
$g_limit_reporters == OFF,
Expand Down

0 comments on commit 3d5a365

Please sign in to comment.