Browse Source

Don't show double validation when terms are shown see BT#13389

jmontoyaa 7 years ago
parent
commit
769c4eb2c1
1 changed files with 2 additions and 1 deletions
  1. 2 1
      main/auth/inscription.php

+ 2 - 1
main/auth/inscription.php

@@ -540,6 +540,7 @@ if (!CustomPages::enabled()) {
 
 $blockButton = false;
 $termActivated = false;
+
 // Terms and conditions
 if (api_get_setting('allow_terms_conditions') == 'true') {
     if (!api_is_platform_admin()) {
@@ -682,7 +683,7 @@ if ($blockButton) {
 } else {
     $allow = api_get_configuration_value('allow_double_validation_in_registration');
 
-    if ($allow) {
+    if ($allow && $termActivated == false) {
         $htmlHeadXtra[] = '<script>
             $(document).ready(function() {
                 $("#pre_validation").click(function() {