diff --git a/build/debian/conf.php.install b/build/debian/conf.php.install index c27d9e0985b..3fe41b98086 100644 --- a/build/debian/conf.php.install +++ b/build/debian/conf.php.install @@ -221,7 +221,13 @@ $dolibarr_main_prod='0'; # $dolibarr_main_limit_users='0'; # dolibarr_mailing_limit_sendbyweb -# Can set a limit for mailing send by web, can be used for a restricted mode. +# Can set a limit for mailing send by web. This overwrite database value. Can be used to restrict on OS level. # Default value: 0 (use database value if exist) # Examples: # $dolibarr_mailing_limit_sendbyweb='0'; + +# dolibarr_mailing_limit_sendbycli +# Can set a limit for mailing send by cli. This overwrite database value. Can be used to restrict on OS level. +# Default value: 0 (use database value if exist) +# Examples: +# $dolibarr_mailing_limit_sendbycli='0'; diff --git a/htdocs/adherents/card.php b/htdocs/adherents/card.php index ddbc7123d70..8c6f7687263 100644 --- a/htdocs/adherents/card.php +++ b/htdocs/adherents/card.php @@ -822,7 +822,7 @@ else // Login if (empty($conf->global->ADHERENT_LOGIN_NOT_REQUIRED)) { - print '
| '.$langs->trans("Ref").' | '; @@ -841,6 +841,10 @@ if ($rowid > 0) { $accountstatic->label=$objp->label; $accountstatic->id=$objp->baid; + $accountstatic->number=$objp->number; + $accountstatic->account_number=$objp->account_number; + $accountstatic->accountancy_journal=$objp->accountancy_journal; + $accountstatic->ref=$objp->ref; print $accountstatic->getNomUrl(1); } else diff --git a/htdocs/adherents/subscription/card.php b/htdocs/adherents/subscription/card.php index ce3baee712b..c8f68d2151c 100644 --- a/htdocs/adherents/subscription/card.php +++ b/htdocs/adherents/subscription/card.php @@ -40,6 +40,7 @@ $action=GETPOST("action",'alpha'); $rowid=GETPOST("rowid","int")?GETPOST("rowid","int"):GETPOST("id","int"); $typeid=GETPOST("typeid","int"); $cancel=GETPOST('cancel'); +$confirm=GETPOST('confirm'); if (! $user->rights->adherent->cotisation->lire) accessforbidden(); @@ -62,10 +63,10 @@ include DOL_DOCUMENT_ROOT.'/core/actions_dellink.inc.php'; // Must be include, //include DOL_DOCUMENT_ROOT.'/core/actions_lineupdown.inc.php'; // Must be include, not include_once -if ($user->rights->adherent->cotisation->creer && $_REQUEST["action"] == 'update' && ! $_POST["cancel"]) +if ($user->rights->adherent->cotisation->creer && $action == 'update' && ! $cancel) { // Charge objet actuel - $result=$object->fetch($_POST["rowid"]); + $result=$object->fetch($rowid); if ($result > 0) { $db->begin(); @@ -138,7 +139,7 @@ if ($user->rights->adherent->cotisation->creer && $_REQUEST["action"] == 'update } } -if ($_REQUEST["action"] == 'confirm_delete' && $_REQUEST["confirm"] == 'yes' && $user->rights->adherent->cotisation->creer) +if ($action == 'confirm_delete' && $confirm == 'yes' && $user->rights->adherent->cotisation->creer) { $result=$object->fetch($rowid); $result=$object->delete($user); @@ -189,11 +190,11 @@ if ($user->rights->adherent->cotisation->creer && $action == 'edit') dol_fiche_head($head, 'general', $langs->trans("Subscription"), 0, 'payment'); - print "\n"; - print '||||
| '.$langs->trans("Ref").' | '; print ''; @@ -287,49 +288,50 @@ if ($rowid && $action != 'edit') print ' | ||