2
0
forked from Wavyzz/dolibarr

fix odt templates lost (#28411)

This commit is contained in:
Frédéric FRANCE
2024-02-25 22:08:45 +01:00
committed by GitHub
parent acd8168cb6
commit 3f8376c2b8

View File

@@ -1912,7 +1912,7 @@ function getListOfModels($db, $type, $maxfilenamelength = 0)
}
if (is_dir($tmpdir)) {
// all type of template is allowed
$tmpfiles = dol_dir_list($tmpdir, 'files', 0, '', '', 'name', SORT_ASC, 0);
$tmpfiles = dol_dir_list($tmpdir, 'files', 0, '', null, 'name', SORT_ASC, 0);
if (count($tmpfiles)) {
$listoffiles = array_merge($listoffiles, $tmpfiles);
}