2
0
forked from Wavyzz/dolibarr

NEW Can upload files from the edit page of expense report

This commit is contained in:
Laurent Destailleur
2019-03-07 20:53:03 +01:00
parent 25fa729e4e
commit 0798f7b719
6 changed files with 120 additions and 51 deletions

View File

@@ -29,7 +29,7 @@
// Submit file/link
if (GETPOST('sendit', 'alpha') && ! empty($conf->global->MAIN_UPLOAD_DOC))
{
if (! empty($_FILES))
if (! empty($_FILES))
{
if (is_array($_FILES['userfile']['tmp_name'])) $userfiles=$_FILES['userfile']['tmp_name'];
else $userfiles=array($_FILES['userfile']['tmp_name']);