From 096bc4750c5fa3d7ceb71065db23fd552480f90c Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Wed, 27 Feb 2019 11:23:33 +0100 Subject: [PATCH] Update api_documents.class.php --- htdocs/api/class/api_documents.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/api/class/api_documents.class.php b/htdocs/api/class/api_documents.class.php index f4ae79d888e..7473bc5db5e 100644 --- a/htdocs/api/class/api_documents.class.php +++ b/htdocs/api/class/api_documents.class.php @@ -369,7 +369,7 @@ class Documents extends DolibarrApi throw new RestException(404, 'Product not found'); } - $upload_dir = $conf->product->dir_output . "/" . get_exdir(0, 0, 0, 1, $object, 'invoice'); + $upload_dir = $conf->product->dir_output . "/" . get_exdir(0, 0, 0, 1, $object, 'product'); } else if ($modulepart == 'agenda' || $modulepart == 'action' || $modulepart == 'event') {