hidden solution to solve files overwriting each other
This commit is contained in:
parent
886aa1f8b6
commit
896f60a478
@ -209,6 +209,10 @@ class doc_generic_odt extends ModeleThirdPartyDoc
|
|||||||
$newfiletmp=preg_replace('/modele_/i','',$newfiletmp);
|
$newfiletmp=preg_replace('/modele_/i','',$newfiletmp);
|
||||||
// Get extension (ods or odt)
|
// Get extension (ods or odt)
|
||||||
$newfileformat=substr($newfile, strrpos($newfile, '.')+1);
|
$newfileformat=substr($newfile, strrpos($newfile, '.')+1);
|
||||||
|
if ( ! empty($conf->global->MAIN_DOC_USE_OBJECT_THIRDPARTY_NAME))
|
||||||
|
{
|
||||||
|
$newfiletmp = dol_sanitizeFileName(dol_string_nospecial($object->name)).'-'.$newfiletmp;
|
||||||
|
}
|
||||||
if ( ! empty($conf->global->MAIN_DOC_USE_TIMING))
|
if ( ! empty($conf->global->MAIN_DOC_USE_TIMING))
|
||||||
{
|
{
|
||||||
$format=$conf->global->MAIN_DOC_USE_TIMING;
|
$format=$conf->global->MAIN_DOC_USE_TIMING;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user