GX-Bug #51833 » OrderInvoicePDFFileNameFix.patch
src/admin/gm_pdf_order.php (revision ) | ||
---|---|---|
703 | 703 |
*/ |
704 | 704 |
if($_GET['type'] == 'invoice') |
705 | 705 |
{ |
706 |
$t_pdf_name = xtc_cleanName(trim($gm_order_pdf_values['GM_PDF_HEADING']), '_') . '_' . (int)$_GET['oID'] . '.pdf';
|
|
706 |
$t_pdf_name = xtc_cleanName(trim($gm_order_pdf_values['GM_PDF_HEADING']), '_') . '_' . (int)$next_id . '.pdf';
|
|
707 | 707 |
$t_pdf_path = DIR_FS_CATALOG . 'export/invoice/' . (int)$_GET['oID'] . '__' . str_replace('/', '_', $order_check['gm_orders_code'] ) . '__' . date("Y-m-d-H-i-s") . '__' . FileLog::get_secure_token() . '.pdf'; |
708 | 708 |
} |
709 | 709 |
else |
710 | 710 |
{ |
711 |
$t_pdf_name = xtc_cleanName(trim($gm_order_pdf_values['GM_PDF_HEADING']), '_') . '_' . (int)$_GET['oID'] . '.pdf';
|
|
711 |
$t_pdf_name = xtc_cleanName(trim($gm_order_pdf_values['GM_PDF_HEADING']), '_') . '_' . (int)$next_id . '.pdf';
|
|
712 | 712 |
$t_pdf_path = DIR_FS_CATALOG . 'export/packingslip/' . (int)$_GET['oID'] . '__' . date("Y-m-d-H-i-s") . '__' . FileLog::get_secure_token() . '.pdf'; |
713 | 713 |
} |
714 | 714 |
|