Fix: use "multidir_output" instead "dir_output"

This commit is contained in:
Regis Houssin
2018-02-25 17:43:19 +01:00
parent 003827eb06
commit 093ea49cc6
16 changed files with 55 additions and 49 deletions

View File

@@ -306,7 +306,7 @@ class Documents extends DolibarrApi
throw new RestException(404, 'Proposal not found');
}
$upload_dir = $conf->propal->dir_output . "/" . get_exdir(0, 0, 0, 1, $object, 'propal');
$upload_dir = $conf->propal->multidir_output[$object->entity] . "/" . get_exdir(0, 0, 0, 1, $object, 'propal');
}
else if ($modulepart == 'commande' || $modulepart == 'order')
{