From a6fe03bd142092f229295931abef6395293a2599 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 4 Oct 2020 23:30:41 +0200 Subject: [PATCH] Fix doc --- htdocs/commande/class/api_orders.class.php | 2 +- htdocs/product/card.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/commande/class/api_orders.class.php b/htdocs/commande/class/api_orders.class.php index 6e95d7d3dc2..7ccbd8950b5 100644 --- a/htdocs/commande/class/api_orders.class.php +++ b/htdocs/commande/class/api_orders.class.php @@ -544,7 +544,7 @@ class Orders extends DolibarrApi * Unlink a contact type of given order * * @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). * * @url DELETE {id}/contact/{contactid}/{type} diff --git a/htdocs/product/card.php b/htdocs/product/card.php index aee77087e92..4970679eb87 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -2388,11 +2388,11 @@ if ($action != 'create' && $action != 'edit' && $action != 'delete') // Documents $objectref = dol_sanitizeFileName($object->ref); $relativepath = $comref.'/'.$objectref.'.pdf'; - if (!empty($conf->product->multidir_output[$object->entity])) { - $filedir = $conf->product->multidir_output[$object->entity].'/'.$objectref; //Check repertories of current entities - } else { - $filedir = $conf->product->dir_output.'/'.$objectref; - } + if (!empty($conf->product->multidir_output[$object->entity])) { + $filedir = $conf->product->multidir_output[$object->entity].'/'.$objectref; //Check repertories of current entities + } else { + $filedir = $conf->product->dir_output.'/'.$objectref; + } $urlsource = $_SERVER["PHP_SELF"]."?id=".$object->id; $genallowed = $usercanread; $delallowed = $usercancreate;