Merge pull request #17527 from daraelmin/daraelmin-setup-newmembermorphy

Fix missing FORCEMORPHY in new member form setup
This commit is contained in:
Laurent Destailleur 2021-05-11 19:52:35 +02:00 committed by GitHub
commit b090516a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 4 deletions

View File

@ -182,6 +182,16 @@ if (!empty($conf->global->MEMBER_ENABLE_PUBLIC)) {
print $form->selectarray("MEMBER_NEWFORM_FORCETYPE", $listofval, $forcetype, count($listofval) > 1 ? 1 : 0);
print "</td></tr>\n";
// Force nature of member (mor/phy)
$morphys["phy"] = $langs->trans("Physical");
$morphys["mor"] = $langs->trans("Moral");
print '<tr class="oddeven drag" id="trforcenature"><td>';
print $langs->trans("ForceMemberNature");
print '</td><td class="right">';
$forcenature = empty($conf->global->MEMBER_NEWFORM_FORCEMORPHY) ? 0 : $conf->global->MEMBER_NEWFORM_FORCEMORPHY;
print $form->selectarray("MEMBER_NEWFORM_FORCEMORPHY", $morphys, $forcenature, 1);
print "</td></tr>\n";
// Amount
print '<tr class="oddeven" id="tramount"><td>';
print $langs->trans("DefaultAmount");

View File

@ -214,3 +214,4 @@ MembershipPaid=Membership paid for current period (until %s)
YouMayFindYourInvoiceInThisEmail=You may find your invoice attached to this email
XMembersClosed=%s member(s) closed
XExternalUserCreated=%s external user(s) created
ForceMemberNature=Force member nature (Individual or Corporation)

View File

@ -83,10 +83,10 @@ WelcomeEMail=Email de bienvenue
SubscriptionRequired=Soumis à cotisation
DeleteType=Supprimer
VoteAllowed=Vote autorisé
Physical=Individual
Moral=Corporation
MorAndPhy=Corporation and Individual
Reenable=Re-Enable
Physical=Personne physique
Moral=Personne morale
MorAndPhy=Personne physique et personne morale
Reenable=Réactivé
ExcludeMember=Exclure un adhérent
ConfirmExcludeMember=Êtes-vous sûr de vouloir exclure cet adhérent ?
ResiliateMember=Résilier un adhérent
@ -213,3 +213,4 @@ SendReminderForExpiredSubscription=Envoyer un rappel par e-mail aux membres lors
MembershipPaid=Adhésion payée pour la période en cours (jusqu'au %s)
YouMayFindYourInvoiceInThisEmail=Vous pouvez trouver votre facture jointe à cet email
XMembersClosed=%s adhérent(s) résilié(s)
ForceMemberNature=Forcer la nature du membre (Personne physique ou personne morale)