Fix: Option to enable mail sending by default works correctly.
This commit is contained in:
parent
4f37c57b64
commit
257a6a49bf
@ -1003,7 +1003,7 @@ if ($rowid && $action != 'edit')
|
|||||||
{
|
{
|
||||||
// Cree un tableau formulaire
|
// Cree un tableau formulaire
|
||||||
$formquestion=array();
|
$formquestion=array();
|
||||||
if ($adh->email) $formquestion[0]=array('type' => 'checkbox', 'name' => 'send_mail', 'label' => $langs->trans("SendAnEMailToMember",$adh->email), 'value' => 'true');
|
if ($adh->email) $formquestion[0]=array('type' => 'checkbox', 'name' => 'send_mail', 'label' => $langs->trans("SendAnEMailToMember",$adh->email), 'value' => ($conf->global->ADHERENT_DEFAULT_SENDINFOBYMAIL?true:false));
|
||||||
|
|
||||||
$ret=$html->form_confirm("fiche.php?rowid=$rowid",$langs->trans("ValidateMember"),$langs->trans("ConfirmValidateMember"),"confirm_valid",$formquestion);
|
$ret=$html->form_confirm("fiche.php?rowid=$rowid",$langs->trans("ValidateMember"),$langs->trans("ConfirmValidateMember"),"confirm_valid",$formquestion);
|
||||||
if ($ret == 'html') print '<br>';
|
if ($ret == 'html') print '<br>';
|
||||||
@ -1209,7 +1209,7 @@ if ($rowid && $action != 'edit')
|
|||||||
*/
|
*/
|
||||||
print '<div class="tabsAction">';
|
print '<div class="tabsAction">';
|
||||||
|
|
||||||
if ($action != 'editlogin' && $action != 'editthirdparty')
|
if ($action != 'valid' && $action != 'editlogin' && $action != 'editthirdparty')
|
||||||
{
|
{
|
||||||
// Modify
|
// Modify
|
||||||
if ($user->rights->adherent->creer)
|
if ($user->rights->adherent->creer)
|
||||||
|
|||||||
@ -1641,7 +1641,9 @@ class Form
|
|||||||
$more.='<tr>';
|
$more.='<tr>';
|
||||||
$more.='<td valign="top">'.$input['label'].' ';
|
$more.='<td valign="top">'.$input['label'].' ';
|
||||||
$more.='<input type="checkbox" class="flat" name="'.$input['name'].'"';
|
$more.='<input type="checkbox" class="flat" name="'.$input['name'].'"';
|
||||||
if ($input['value'] != 'false') $more.=' checked="true"';
|
//print 'xx'.$input['value'].'-'.!empty($input['value']).'-'.($input['value'] != 'false');
|
||||||
|
if (! is_bool($input['value']) && $input['value'] != 'false') $more.=' checked="true"';
|
||||||
|
if (is_bool($input['value']) && $input['value']) $more.=' checked="true"';
|
||||||
if ($input['disabled']) $more.=' disabled="true"';
|
if ($input['disabled']) $more.=' disabled="true"';
|
||||||
$more.='></td>';
|
$more.='></td>';
|
||||||
$more.='<td valign="top" align="left"> </td>';
|
$more.='<td valign="top" align="left"> </td>';
|
||||||
|
|||||||
@ -821,7 +821,7 @@ MembersSetup=Members module setup
|
|||||||
MemberMainOptions=Main options
|
MemberMainOptions=Main options
|
||||||
AddSubscriptionIntoAccount=Add subscriptions into bank or cash account, of bank module
|
AddSubscriptionIntoAccount=Add subscriptions into bank or cash account, of bank module
|
||||||
AdherentMailRequired=EMail required to create a new member
|
AdherentMailRequired=EMail required to create a new member
|
||||||
MemberSendInformationByMailByDefault=Checkbox to send mail confirmation to members is on by default
|
MemberSendInformationByMailByDefault=Checkbox to send mail confirmation to members (validation or new subscription) is on by default
|
||||||
##### LDAP setup #####
|
##### LDAP setup #####
|
||||||
LDAPSetup=LDAP Setup
|
LDAPSetup=LDAP Setup
|
||||||
LDAPGlobalParameters=Global parameters
|
LDAPGlobalParameters=Global parameters
|
||||||
|
|||||||
@ -821,7 +821,7 @@ MembersSetup = Configuration du module Adhérents
|
|||||||
MemberMainOptions = Options principales
|
MemberMainOptions = Options principales
|
||||||
AddSubscriptionIntoAccount = Enregistrer cotisations dans compte bancaire ou caisse, du module banque
|
AddSubscriptionIntoAccount = Enregistrer cotisations dans compte bancaire ou caisse, du module banque
|
||||||
AdherentMailRequired = EMail obligatoire pour créer un nouvel adhérent
|
AdherentMailRequired = EMail obligatoire pour créer un nouvel adhérent
|
||||||
MemberSendInformationByMailByDefault = Case à cocher pour envoyer mail de confirmation aux adhérents est à oui par défaut
|
MemberSendInformationByMailByDefault = Case à cocher pour envoyer mail de confirmation (validation ou nouvelle cotisation) aux adhérents est à oui par défaut
|
||||||
##### LDAP setup ##### = undefined
|
##### LDAP setup ##### = undefined
|
||||||
LDAPSetup = Configuration du module LDAP
|
LDAPSetup = Configuration du module LDAP
|
||||||
LDAPGlobalParameters = Paramètres globals
|
LDAPGlobalParameters = Paramètres globals
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user