Merge pull request #22839 from Hystepik/develop_v15#1
Fix #11555 : Message display on adherent public
This commit is contained in:
commit
c657a8b5d4
@ -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";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user