This commit is contained in:
Laurent Destailleur 2020-10-04 23:30:41 +02:00
parent 07e1646b3a
commit a6fe03bd14
2 changed files with 6 additions and 6 deletions

View File

@ -544,7 +544,7 @@ class Orders extends DolibarrApi
* Unlink a contact type of given order * Unlink a contact type of given order
* *
* @param int $id Id of order to update * @param int $id Id of order to update
* @param int $rowid Row key of the contact in the array contact_ids. * @param int $contactid Id of contact
* @param string $type Type of the contact (BILLING, SHIPPING, CUSTOMER). * @param string $type Type of the contact (BILLING, SHIPPING, CUSTOMER).
* *
* @url DELETE {id}/contact/{contactid}/{type} * @url DELETE {id}/contact/{contactid}/{type}

View File

@ -2388,11 +2388,11 @@ if ($action != 'create' && $action != 'edit' && $action != 'delete')
// Documents // Documents
$objectref = dol_sanitizeFileName($object->ref); $objectref = dol_sanitizeFileName($object->ref);
$relativepath = $comref.'/'.$objectref.'.pdf'; $relativepath = $comref.'/'.$objectref.'.pdf';
if (!empty($conf->product->multidir_output[$object->entity])) { if (!empty($conf->product->multidir_output[$object->entity])) {
$filedir = $conf->product->multidir_output[$object->entity].'/'.$objectref; //Check repertories of current entities $filedir = $conf->product->multidir_output[$object->entity].'/'.$objectref; //Check repertories of current entities
} else { } else {
$filedir = $conf->product->dir_output.'/'.$objectref; $filedir = $conf->product->dir_output.'/'.$objectref;
} }
$urlsource = $_SERVER["PHP_SELF"]."?id=".$object->id; $urlsource = $_SERVER["PHP_SELF"]."?id=".$object->id;
$genallowed = $usercanread; $genallowed = $usercanread;
$delallowed = $usercancreate; $delallowed = $usercancreate;