Allow to skip membership table for retrocompatibility

This commit is contained in:
Yoan Mollard 2022-06-29 03:27:48 +02:00
parent e7058c253e
commit f4d5962254

View File

@ -476,7 +476,7 @@ print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST" name="newmember">'.
print '<input type="hidden" name="token" value="'.newToken().'" / >';
print '<input type="hidden" name="entity" value="'.$entity.'" />';
if (!empty($conf->global->MEMBER_NEWFORM_FORCETYPE) || $action == 'create') {
if (!empty($conf->global->MEMBER_SKIP_TABLE) || !empty($conf->global->MEMBER_NEWFORM_FORCETYPE) || $action == 'create') {
print '<input type="hidden" name="action" value="add" />';
print '<br>';
print '<br><span class="opacitymedium">'.$langs->trans("FieldsWithAreMandatory", '*').'</span><br>';