FIX #18854
This commit is contained in:
parent
d68719226b
commit
d99b3d601a
@ -42,6 +42,7 @@ if (!$section) {
|
|||||||
$section = 0;
|
$section = 0;
|
||||||
}
|
}
|
||||||
$section_dir = GETPOST('section_dir', 'alpha');
|
$section_dir = GETPOST('section_dir', 'alpha');
|
||||||
|
$overwritefile = GETPOST('overwritefile', 'int');
|
||||||
|
|
||||||
$limit = GETPOST('limit', 'int') ? GETPOST('limit', 'int') : $conf->liste_limit;
|
$limit = GETPOST('limit', 'int') ? GETPOST('limit', 'int') : $conf->liste_limit;
|
||||||
$sortfield = GETPOST("sortfield", 'alpha');
|
$sortfield = GETPOST("sortfield", 'alpha');
|
||||||
@ -120,7 +121,7 @@ if (GETPOST("sendit", 'alphanohtml') && !empty($conf->global->MAIN_UPLOAD_DOC))
|
|||||||
|
|
||||||
if (!$error) {
|
if (!$error) {
|
||||||
$generatethumbs = 0;
|
$generatethumbs = 0;
|
||||||
$res = dol_add_file_process($upload_dir, 0, 1, 'userfile', '', null, '', $generatethumbs);
|
$res = dol_add_file_process($upload_dir, $overwritefile, 1, 'userfile', '', null, '', $generatethumbs);
|
||||||
if ($res > 0) {
|
if ($res > 0) {
|
||||||
$result = $ecmdir->changeNbOfFiles('+');
|
$result = $ecmdir->changeNbOfFiles('+');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user