Merge branch '3227-No-se-guarda-muestra-correctamente-certificado-ssl-en-setup-general' into 'develop'

fix bug when updating path of ssl certificate in general setup

See merge request artica/pandorafms!2052

Former-commit-id: 453119a3a14e50ce6834eb1ee46da2f1289d6082
This commit is contained in:
Daniel Rodriguez 2019-02-18 17:18:46 +01:00
commit 4473762393
2 changed files with 6 additions and 1 deletions

View File

@ -338,6 +338,11 @@ $(document).ready (function () {
$("#zone").attr("hidden", false);
$("#timezone").attr("hidden", false);
});
if ($("input[name=use_cert]").is(':checked')) {
$('#setup_general-13').show();
}
$("input[name=use_cert]").change(function () {
if( $(this).is(":checked") )
$('#setup_general-13').show();

View File

@ -165,7 +165,7 @@ function config_update_config()
$error_update[] = __('Automatic check for updates');
}
if (!config_update_value('cert_path', (bool) get_parameter('cert_path'))) {
if (!config_update_value('cert_path', get_parameter('cert_path'))) {
$error_update[] = __('SSL cert path');
}