Fix document list for products in API
This commit is contained in:
parent
c01ac05aec
commit
74e3a423fd
@ -368,7 +368,7 @@ class Documents extends DolibarrApi
|
|||||||
throw new RestException(404, 'Product not found');
|
throw new RestException(404, 'Product not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
$upload_dir = $conf->product->dir_output . "/" . get_exdir(0, 0, 0, 1, $object, 'product');
|
$upload_dir = $conf->product->multidir_output[$object->entity].'/'.get_exdir(0, 0, 0, 0, $object, 'product').dol_sanitizeFileName($object->ref);
|
||||||
}
|
}
|
||||||
elseif ($modulepart == 'agenda' || $modulepart == 'action' || $modulepart == 'event')
|
elseif ($modulepart == 'agenda' || $modulepart == 'action' || $modulepart == 'event')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user