Fix:Bad documents download link sometimes
This commit is contained in:
parent
694df3468a
commit
4e85b36c29
@ -418,7 +418,7 @@ class FormFile
|
|||||||
// Define relative path used to store the file
|
// Define relative path used to store the file
|
||||||
if (! $relativepath)
|
if (! $relativepath)
|
||||||
{
|
{
|
||||||
$relativepath=$object->ref.'/';
|
$relativepath=sanitize_string($object->ref).'/';
|
||||||
if ($modulepart == 'facture_fournisseur') $relativepath=get_exdir($object->id,2).$relativepath;
|
if ($modulepart == 'facture_fournisseur') $relativepath=get_exdir($object->id,2).$relativepath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user