diff --git a/htdocs/core/tpl/document_actions_post_headers.tpl.php b/htdocs/core/tpl/document_actions_post_headers.tpl.php
index 692c9cf3494..9fe6946d89d 100644
--- a/htdocs/core/tpl/document_actions_post_headers.tpl.php
+++ b/htdocs/core/tpl/document_actions_post_headers.tpl.php
@@ -120,5 +120,5 @@ $formfile->list_of_documents(
print "
";
//List of links
-$formfile->listOfLinks($object, $permission, $action, GETPOST('linkid', 'int'), $param, $relativepathwithnofile);
+$formfile->listOfLinks($object, $permission, $action, GETPOST('linkid', 'int'), $param);
print "
";
diff --git a/htdocs/product/inventory/class/inventory.class.php b/htdocs/product/inventory/class/inventory.class.php
index e93942d16d4..be6ca6aa930 100644
--- a/htdocs/product/inventory/class/inventory.class.php
+++ b/htdocs/product/inventory/class/inventory.class.php
@@ -396,6 +396,7 @@ class Inventory extends CommonObject
// phpcs:enable
global $langs;
+ $labelStatus = array();
$labelStatus[self::STATUS_DRAFT] = $langs->trans('Draft');
$labelStatus[self::STATUS_VALIDATED] = $langs->trans('Enabled');
$labelStatus[self::STATUS_CANCELED] = $langs->trans('Canceled');