Merge branch 'ent-11012-Flag-Experimental-para-la-consola' into 'develop'
added setup token See merge request artica/pandorafms!6133
This commit is contained in:
commit
4148074996
|
@ -747,6 +747,16 @@ $table->data[$i][] = html_print_label_input_block(
|
|||
)
|
||||
);
|
||||
|
||||
$table->data[$i][] = html_print_label_input_block(
|
||||
__('Show experimental features'),
|
||||
html_print_checkbox_switch(
|
||||
'show_experimental_features',
|
||||
1,
|
||||
$config['show_experimental_features'],
|
||||
true
|
||||
)
|
||||
);
|
||||
|
||||
echo '<form class="max_floating_element_size" id="form_setup" method="post" action="index.php?sec=gsetup&sec2=godmode/setup/setup&section=general&pure='.$config['pure'].'">';
|
||||
|
||||
echo '<fieldset class="margin-bottom-10">';
|
||||
|
|
|
@ -378,6 +378,10 @@ function config_update_config()
|
|||
$error_update[] = __('keep_in_process_status_extra_id');
|
||||
}
|
||||
|
||||
if (config_update_value('show_experimental_features', get_parameter('show_experimental_features'), true) === false) {
|
||||
$error_update[] = __('show_experimental_features');
|
||||
}
|
||||
|
||||
if (config_update_value('console_log_enabled', get_parameter('console_log_enabled'), true) === false) {
|
||||
$error_update[] = __('Console log enabled');
|
||||
}
|
||||
|
@ -2401,6 +2405,10 @@ function config_process_config()
|
|||
config_update_value('keep_in_process_status_extra_id', 0);
|
||||
}
|
||||
|
||||
if (!isset($config['show_experimental_features'])) {
|
||||
config_update_value('show_experimental_features', 0);
|
||||
}
|
||||
|
||||
if (!isset($config['console_log_enabled'])) {
|
||||
config_update_value('console_log_enabled', 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue