Added default_no_hierarchy to config global variable
Former-commit-id: 0daba928d7adc7a848bca04b04168d05a82ea609
This commit is contained in:
parent
669c74c3dd
commit
0445e212fe
|
@ -312,6 +312,8 @@ function config_update_config () {
|
|||
$error_update[] = __('Autocreate profile group');
|
||||
if (!config_update_value ('default_assign_tags', implode(",",get_parameter ('default_assign_tags'))))
|
||||
$error_update[] = __('Autocreate profile tags');
|
||||
if (!config_update_value ('default_no_hierarchy', (int)get_parameter ('default_no_hierarchy')))
|
||||
$error_update[] = __('Automatically assigned no hierarchy');
|
||||
if (!config_update_value ('autocreate_blacklist', get_parameter ('autocreate_blacklist')))
|
||||
$error_update[] = __('Autocreate blacklist');
|
||||
|
||||
|
@ -1452,7 +1454,10 @@ function config_process_config () {
|
|||
if (!isset ($config['default_assign_tags'])) {
|
||||
config_update_value ( 'default_assign_tags', '');
|
||||
}
|
||||
|
||||
if (!isset ($config['default_no_hierarchy'])) {
|
||||
config_update_value ('default_no_hierarchy', 0);
|
||||
}
|
||||
|
||||
if (!isset ($config['ldap_server'])) {
|
||||
config_update_value ( 'ldap_server', 'localhost');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue