diff --git a/core/core.php b/core/core.php index c05051b4..0d3ae3b7 100755 --- a/core/core.php +++ b/core/core.php @@ -39,7 +39,7 @@ class common { const ACCESS_TIMER = 1800; // Numéro de version - const ZWII_VERSION = '10.2.00.dev26'; + const ZWII_VERSION = '10.2.00.dev27'; const ZWII_UPDATE_CHANNEL = "v10"; public static $actions = []; diff --git a/core/module/config/config.php b/core/module/config/config.php index b67fb00a..7895011c 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -415,20 +415,7 @@ class config extends common { } else { $legalPageId = ''; } - // Contrôle de cohérence - $connectAttempt = $this->getInput('configConnectAttempt', helper::FILTER_INT); - $connectTimeout = $this->getInput('configConnectTimeout', helper::FILTER_INT); - if( - ( $connectAttempt === 999 && $connectTimeout !== 0 ) - ) { - self::$inputNotices['configConnectAttempt'] = 'Valeur incorrecte'; - } - if( - ( $connectAttempt !== 999 && $connectTimeout === 0 ) - ) { - self::$inputNotices['configConnectTimeout'] = 'Valeur incorrecte'; - } - + // Sauvegarder $this->setData([ 'config', [ diff --git a/core/module/config/view/index/index.js.php b/core/module/config/view/index/index.js.php index cb131f42..5e09f549 100755 --- a/core/module/config/view/index/index.js.php +++ b/core/module/config/view/index/index.js.php @@ -63,16 +63,25 @@ $("select[name=configSmtpAuth]").on("change", function() { }); /** - * Options de blocage de connexions choix aucun + * Options de blocage de connexions + * Contrôle la cohérence des sélections et interdit une seule valeur Aucune */ $("select[name=configConnectAttempt]").on("change", function() { if ($("select[name=configConnectAttempt]").val() === "999") { $("select[name=configConnectTimeout]").val(0); + } else { + if ($("select[name=configConnectTimeout]").val() === "0") { + $("select[name=configConnectTimeout]").val(300); + } } }); - $("select[name=configConnectTimeout]").on("change", function() { if ($("select[name=configConnectTimeout]").val() === "0") { $("select[name=configConnectAttempt]").val(999); + } else { + if ($("select[name=configConnectAttempt]").val() === "999") { + $("select[name=configConnectAttempt]").val(3); + } } -}); \ No newline at end of file +}); +