débogage en cours pour l'attachement des id_document
This commit is contained in:
parent
b220ddc30a
commit
1440d1ed1e
1 changed files with 2 additions and 2 deletions
|
@ -186,8 +186,6 @@ function formulaires_gamumail_traiter_dist($slug, $destinataires = 0, $Tclient =
|
||||||
$cc = explode(',', $cc);
|
$cc = explode(',', $cc);
|
||||||
$cci = explode(',', $cci);
|
$cci = explode(',', $cci);
|
||||||
|
|
||||||
$docs_spip = ($docs_spip != '' ? explode(',', $docs_spip) : []);
|
|
||||||
|
|
||||||
$destinataires = [];
|
$destinataires = [];
|
||||||
foreach ($pour as $dest) {
|
foreach ($pour as $dest) {
|
||||||
if (is_numeric($dest)) {
|
if (is_numeric($dest)) {
|
||||||
|
@ -210,6 +208,7 @@ function formulaires_gamumail_traiter_dist($slug, $destinataires = 0, $Tclient =
|
||||||
}
|
}
|
||||||
|
|
||||||
// les documents par id_document
|
// les documents par id_document
|
||||||
|
$docs_spip = ($docs_spip != '' ? explode(',', $docs_spip) : []);
|
||||||
if (!empty($docs_spip)) {
|
if (!empty($docs_spip)) {
|
||||||
foreach ($docs_spip as $id_document) {
|
foreach ($docs_spip as $id_document) {
|
||||||
$Tdocument = sql_fetsel('titre,fichier,extension','spip_documents','id_document='.intval($id_document));
|
$Tdocument = sql_fetsel('titre,fichier,extension','spip_documents','id_document='.intval($id_document));
|
||||||
|
@ -280,6 +279,7 @@ function formulaires_gamumail_traiter_dist($slug, $destinataires = 0, $Tclient =
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
var_dump($pieces_jointes);die;
|
||||||
|
|
||||||
$html_header = '';
|
$html_header = '';
|
||||||
if (find_in_path('gamumail/'.$slug .'_html_header.html')) {
|
if (find_in_path('gamumail/'.$slug .'_html_header.html')) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue