FIX Option MAIN_DOC_USE_TIMING can be a string with date format

This commit is contained in:
Laurent Destailleur
2024-03-11 18:28:20 +01:00
parent 07ecee2429
commit 330abe14fe
21 changed files with 42 additions and 42 deletions

View File

@@ -280,8 +280,8 @@ class doc_generic_order_odt extends ModelePDFCommandes
// Get extension (ods or odt)
$newfileformat = substr($newfile, strrpos($newfile, '.') + 1);
if (getDolGlobalInt('MAIN_DOC_USE_TIMING')) {
$format = getDolGlobalInt('MAIN_DOC_USE_TIMING');
if (getDolGlobalString('MAIN_DOC_USE_TIMING')) {
$format = getDolGlobalString('MAIN_DOC_USE_TIMING');
if ($format == '1') {
$format = '%Y%m%d%H%M%S';
}