forked from Wavyzz/dolibarr
fix odt templates lost (#28411)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user