Fix #11555 : Message display on adherent public

This commit is contained in:
lmarcouiller 2022-11-14 15:32:16 +01:00
parent 7205901437
commit eb63c8c5c6

View File

@ -289,6 +289,7 @@ if (empty($reshook) && $action == 'add') {
$error++; $error++;
} }
if (!$error) {
$result = $adh->create($user); $result = $adh->create($user);
if ($result > 0) { if ($result > 0) {
require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php';
@ -412,6 +413,7 @@ if (empty($reshook) && $action == 'add') {
$errmsg .= join('<br>', $adh->errors); $errmsg .= join('<br>', $adh->errors);
} }
} }
}
if (!$error) { if (!$error) {
$db->commit(); $db->commit();
@ -469,6 +471,7 @@ if (!empty($conf->global->MEMBER_NEWFORM_TEXT)) {
print '</div>'; print '</div>';
dol_htmloutput_errors($errmsg); dol_htmloutput_errors($errmsg);
dol_htmloutput_events();
// Print form // Print form
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST" name="newmember">'."\n"; print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST" name="newmember">'."\n";