Merge branch 'ent-12090-editar-intevalos-por-defecto' into 'develop'

Ent 12090 editar intevalos por defecto

See merge request artica/pandorafms!6467
This commit is contained in:
Diego Muñoz-Reja 2023-09-25 09:27:49 +00:00
commit 738428a816
1 changed files with 2 additions and 1 deletions

View File

@ -1486,7 +1486,7 @@ function config_update_config()
// --------------------------------------------------
// CUSTOM INTERVAL VALUES
// --------------------------------------------------
$interval_values = get_parameter('interval_values');
$interval_values = $config['interval_values'];
// Add new interval value if is provided.
$interval_value = (float) get_parameter('interval_value', 0);
@ -1528,6 +1528,7 @@ function config_update_config()
$interval_values = implode(',', $interval_values_array);
}
hd($interval_values, true);
if (config_update_value('interval_values', $interval_values, true) === false) {
$error_update[] = __('Delete interval');
}