Debug v23 - PDF generation error if additional PDF name not set

This commit is contained in:
Laurent Destailleur
2026-01-15 15:37:33 +01:00
parent 87c01a3371
commit 24d7e4f24d
7 changed files with 19 additions and 17 deletions

View File

@@ -641,8 +641,8 @@ class pdf_einstein extends ModelePDFCommandes
}
// Add terms to sale
if (getDolGlobalString("MAIN_INFO_ORDER_TERMSOFSALE") && getDolGlobalInt('MAIN_PDF_ADD_TERMSOFSALE_ORDER')) {
$termsofsalefilename = getDolGlobalString('MAIN_INFO_ORDER_TERMSOFSALE');
$termsofsalefilename = getDolGlobalString('MAIN_INFO_ORDER_TERMSOFSALE');
if (getDolGlobalInt('MAIN_PDF_ADD_TERMSOFSALE_ORDER') && $termsofsalefilename) {
$termsofsale = $conf->order->dir_output.'/'.$termsofsalefilename;
if (!empty($conf->order->multidir_output[$conf->entity])) {
$termsofsale = $conf->order->multidir_output[$conf->entity].'/'.$termsofsalefilename;

View File

@@ -912,8 +912,8 @@ class pdf_eratosthene extends ModelePDFCommandes
}
// Add terms to sale
if (getDolGlobalString("MAIN_INFO_ORDER_TERMSOFSALE") && getDolGlobalInt('MAIN_PDF_ADD_TERMSOFSALE_ORDER')) {
$termsofsalefilename = getDolGlobalString('MAIN_INFO_ORDER_TERMSOFSALE');
$termsofsalefilename = getDolGlobalString('MAIN_INFO_ORDER_TERMSOFSALE');
if (getDolGlobalInt('MAIN_PDF_ADD_TERMSOFSALE_ORDER') && $termsofsalefilename) {
$termsofsale = $conf->order->dir_output.'/'.$termsofsalefilename;
if (!empty($conf->order->multidir_output[$conf->entity])) {
$termsofsale = $conf->order->multidir_output[$conf->entity].'/'.$termsofsalefilename;