Fix : générer tous les PDFs dynamiques (et pas uniquement le premier)

This commit is contained in:
cy_altern 2024-12-05 16:51:21 +01:00
parent 4eede987fa
commit 9797f06364

View file

@ -194,7 +194,6 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = [], $Tid_doc_pie
$nom = array_key_exists('nom', $pdf) ? $pdf['nom'] : $pdf; $nom = array_key_exists('nom', $pdf) ? $pdf['nom'] : $pdf;
} }
else break; else break;
}
$recup_pdf = charger_fonction('charger_pdf','inc'); $recup_pdf = charger_fonction('charger_pdf','inc');
$pdf = $recup_pdf($sq_pdf, $contexte); $pdf = $recup_pdf($sq_pdf, $contexte);
@ -210,6 +209,7 @@ function inc_envoyer_gamumail($slug, $destinataires, $options = [], $Tid_doc_pie
]; ];
} }
} }
}
$html_header = ''; $html_header = '';
if (find_in_path('gamumail/'.$slug .'_html_header.html')) { if (find_in_path('gamumail/'.$slug .'_html_header.html')) {