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;