From 1aa5e0ab8f7e2d0980cd9f59743ea6ed7b9a8a6d Mon Sep 17 00:00:00 2001 From: Anthony Berton Date: Mon, 22 May 2023 14:42:09 +0200 Subject: [PATCH 1/5] FIX - Save conf pdf other propal use electronic signing --- htdocs/admin/pdf_other.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/htdocs/admin/pdf_other.php b/htdocs/admin/pdf_other.php index f14f8c756f5..2fd3f13f88b 100644 --- a/htdocs/admin/pdf_other.php +++ b/htdocs/admin/pdf_other.php @@ -50,6 +50,9 @@ $action = GETPOST('action', 'aZ09'); */ if ($action == 'update') { + if (GETPOSTISSET('MAIN_PDF_PROPAL_USE_ELECTRONIC_SIGNING')) { + dolibarr_set_const($db, "MAIN_PDF_PROPAL_USE_ELECTRONIC_SIGNING", GETPOST("MAIN_PDF_PROPAL_USE_ELECTRONIC_SIGNING"), 'chaine', 0, '', $conf->entity); + } if (GETPOSTISSET('PROPOSAL_PDF_HIDE_PAYMENTTERM')) { dolibarr_set_const($db, "PROPOSAL_PDF_HIDE_PAYMENTTERM", GETPOST("PROPOSAL_PDF_HIDE_PAYMENTTERM"), 'chaine', 0, '', $conf->entity); } From f929aee3afa8d1d4ff22250fc91c480efa8bf334 Mon Sep 17 00:00:00 2001 From: David Beniamine Date: Tue, 23 May 2023 14:12:41 +0200 Subject: [PATCH 2/5] Add a setting to send subscription reminder to a cc address --- htdocs/adherents/admin/member_emails.php | 1 + htdocs/adherents/class/adherent.class.php | 3 ++- htdocs/core/lib/admin.lib.php | 2 +- htdocs/langs/en_US/members.lang | 1 + htdocs/langs/fr_FR/members.lang | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/htdocs/adherents/admin/member_emails.php b/htdocs/adherents/admin/member_emails.php index a1e28904d8c..2bfd3a1d630 100644 --- a/htdocs/adherents/admin/member_emails.php +++ b/htdocs/adherents/admin/member_emails.php @@ -63,6 +63,7 @@ $constantes = array( 'ADHERENT_EMAIL_TEMPLATE_CANCELATION' =>array('type'=>'emailtemplate:member'), 'ADHERENT_EMAIL_TEMPLATE_EXCLUSION' =>array('type'=>'emailtemplate:member'), 'ADHERENT_MAIL_FROM' =>array('type'=>'string'), + 'ADHERENT_CC_MAIL_FROM' =>array('type'=>'string'), 'ADHERENT_AUTOREGISTER_NOTIF_MAIL_SUBJECT' =>array('type'=>'string'), 'ADHERENT_AUTOREGISTER_NOTIF_MAIL' =>array('type'=>'html', 'tooltip'=>$helptext) ); diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index f70a23dabab..6b99c7bbb0c 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -3146,12 +3146,13 @@ class Adherent extends CommonObject $msg = make_substitutions($arraydefaultmessage->content, $substitutionarray, $outputlangs); $from = getDolGlobalString('ADHERENT_MAIL_FROM'); $to = $adherent->email; + $cc = getDolGlobalString('ADHERENT_CC_MAIL_FROM'); $trackid = 'mem'.$adherent->id; $moreinheader = 'X-Dolibarr-Info: sendReminderForExpiredSubscription'."\r\n"; include_once DOL_DOCUMENT_ROOT.'/core/class/CMailFile.class.php'; - $cmail = new CMailFile($subject, $to, $from, $msg, array(), array(), array(), '', '', 0, 1, '', '', $trackid, $moreinheader); + $cmail = new CMailFile($subject, $to, $from, $msg, array(), array(), array(), $cc, '', 0, 1, '', '', $trackid, $moreinheader); $result = $cmail->sendfile(); if (!$result) { $error++; diff --git a/htdocs/core/lib/admin.lib.php b/htdocs/core/lib/admin.lib.php index 03f6d40ced0..417ad2db365 100644 --- a/htdocs/core/lib/admin.lib.php +++ b/htdocs/core/lib/admin.lib.php @@ -1766,7 +1766,7 @@ function form_constantes($tableau, $strictw3c = 0, $helptext = '', $text = 'Valu } print ''; //print 'http://lists.example.com/cgi-bin/mailman/admin/%LISTE%/members/remove?adminpw=%MAILMAN_ADMINPW%&unsubscribees=%EMAIL%'; - } elseif ($const == 'ADHERENT_MAIL_FROM') { + } elseif (in_array($const, ['ADHERENT_MAIL_FROM', 'ADHERENT_CC_MAIL_FROM'])) { print ' '.img_help(1, $langs->trans("EMailHelpMsgSPFDKIM")); } diff --git a/htdocs/langs/en_US/members.lang b/htdocs/langs/en_US/members.lang index ba800994837..228460c4d2b 100644 --- a/htdocs/langs/en_US/members.lang +++ b/htdocs/langs/en_US/members.lang @@ -162,6 +162,7 @@ DescADHERENT_EMAIL_TEMPLATE_REMIND_EXPIRATION=Email template to use to send emai DescADHERENT_EMAIL_TEMPLATE_CANCELATION=Email template to use to send email to a member on member cancelation DescADHERENT_EMAIL_TEMPLATE_EXCLUSION=Email template to use to send email to a member on member exclusion DescADHERENT_MAIL_FROM=Sender Email for automatic emails +DescADHERENT_CC_MAIL_FROM=Send automatic email copy to DescADHERENT_ETIQUETTE_TYPE=Format of labels page DescADHERENT_ETIQUETTE_TEXT=Text printed on member address sheets DescADHERENT_CARD_TYPE=Format of cards page diff --git a/htdocs/langs/fr_FR/members.lang b/htdocs/langs/fr_FR/members.lang index 1d27ca89964..5f9dea36700 100644 --- a/htdocs/langs/fr_FR/members.lang +++ b/htdocs/langs/fr_FR/members.lang @@ -158,6 +158,7 @@ DescADHERENT_EMAIL_TEMPLATE_REMIND_EXPIRATION=Modèle d'email électronique à u DescADHERENT_EMAIL_TEMPLATE_CANCELATION=Modèle d'email utilisé pour envoyer un email à un adhérent lors de l'annulation d'adhésion DescADHERENT_EMAIL_TEMPLATE_EXCLUSION=Modèle de courriel à utiliser pour envoyer un courriel à un adhérent lors de son exclusion DescADHERENT_MAIL_FROM=Email émetteur pour les mails automatiques +DescADHERENT_CC_MAIL_FROM=Email en copie des mails automatiques DescADHERENT_ETIQUETTE_TYPE=Format pages étiquettes DescADHERENT_ETIQUETTE_TEXT=Texte imprimé sur les planches d'adresses adhérent DescADHERENT_CARD_TYPE=Format pages cartes d'adhérent From 39d4b32fec8f14ebb4aaae211571a871608cf09a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Tue, 23 May 2023 15:10:42 +0200 Subject: [PATCH 3/5] add limit var, use on tpl --- htdocs/product/stock/card.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php index b1bee9165c5..7eb251bbf62 100644 --- a/htdocs/product/stock/card.php +++ b/htdocs/product/stock/card.php @@ -6,7 +6,7 @@ * Copyright (C) 2016 Francis Appels * Copyright (C) 2021 Noé Cendrier * Copyright (C) 2021 Frédéric France - * Copyright (C) 2022 Charlene Benke + * Copyright (C) 2022-2023 Charlene Benke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -56,6 +56,8 @@ $id = GETPOST('id', 'int'); $socid = GETPOST('socid', 'int'); $ref = GETPOST('ref', 'alpha'); +// Load variable for pagination +$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit; $sortfield = GETPOST('sortfield', 'aZ09comma'); $sortorder = GETPOST('sortorder', 'aZ09comma'); if (!$sortfield) { From 44a0ad3ac9a6af3bd5d023faac80b64cfab0b320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charl=C3=A8ne=20Benke?= <1179011+defrance@users.noreply.github.com> Date: Tue, 23 May 2023 15:19:57 +0200 Subject: [PATCH 4/5] warning on display storage --- htdocs/product/stock/card.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php index 7eb251bbf62..858b7846906 100644 --- a/htdocs/product/stock/card.php +++ b/htdocs/product/stock/card.php @@ -634,6 +634,8 @@ if ($action == 'create') { print_liste_field_titre("EstimatedStockValueShort", "", "", "&id=".$id, "", '', $sortfield, $sortorder, 'right '); $totalarray['nbfield']++; $totalarray['pos'][$totalarray['nbfield']] = 'totalvalue'; + $totalarray['type'][$totalarray['nbfield']] = ''; + if (empty($conf->global->PRODUIT_MULTIPRICES)) { print_liste_field_titre("SellPriceMin", "", "p.price", "&id=".$id, "", '', $sortfield, $sortorder, 'right '); @@ -643,6 +645,8 @@ if ($action == 'create') { print_liste_field_titre("EstimatedStockValueSellShort", "", "", "&id=".$id, "", '', $sortfield, $sortorder, 'right '); $totalarray['nbfield']++; $totalarray['pos'][$totalarray['nbfield']] = 'totalvaluesell'; + $totalarray['type'][$totalarray['nbfield']] = ''; + } if ($user->rights->stock->mouvement->creer) { print_liste_field_titre(''); From fab95c11d32d42ebf11b0d810f480b7971da46d4 Mon Sep 17 00:00:00 2001 From: daraelmin Date: Tue, 23 May 2023 16:11:36 +0200 Subject: [PATCH 5/5] FIX Constant name misspelling --- htdocs/core/boxes/box_members_by_tags.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/boxes/box_members_by_tags.php b/htdocs/core/boxes/box_members_by_tags.php index c4f192e7490..e9404254b0a 100644 --- a/htdocs/core/boxes/box_members_by_tags.php +++ b/htdocs/core/boxes/box_members_by_tags.php @@ -160,7 +160,7 @@ class box_members_by_tags extends ModeleBoxes $this->info_box_contents[$line][] = array( 'td' => 'class="tdoverflowmax150 maxwidth150onsmartphone"', - 'text' => ''.dol_trunc(($adhtag->ref ? $adhtag->ref : $adhtag->label), dol_size(32)).'', + 'text' => ''.dol_trunc(($adhtag->ref ? $adhtag->ref : $adhtag->label), dol_size(32)).'', 'asis' => 1, ); $this->info_box_contents[$line][] = array(