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

pull/2487/head
jmontoyaa 8 years ago
parent d13f3aaf11
commit eb997ff5d2
  1. 5
      main/auth/inscription.php

@ -478,6 +478,8 @@ if (!CustomPages::enabled()) {
}
}
$showTerms = false;
// Terms and conditions
if (api_get_setting('allow_terms_conditions') == 'true') {
if (!api_is_platform_admin()) {
@ -524,11 +526,12 @@ if (api_get_setting('allow_terms_conditions') == 'true') {
$preview = LegalManager::show_last_condition($term_preview);
$form->addElement('label', null, $preview);
}
$showTerms = true;
}
$allow = api_get_configuration_value('allow_double_validation_in_registration');
if ($allow) {
if ($allow && $showTerms == false) {
$htmlHeadXtra[] = '<script>
$(document).ready(function() {
$("#pre_validation").click(function() {

Loading…
Cancel
Save