diff --git a/htdocs/product/class/html.formproduct.class.php b/htdocs/product/class/html.formproduct.class.php
index 19abade42ae..8dc86f394a3 100644
--- a/htdocs/product/class/html.formproduct.class.php
+++ b/htdocs/product/class/html.formproduct.class.php
@@ -263,7 +263,7 @@ class FormProduct
'orderBy' =>& $orderBy
);
- $reshook = $hookmanager->executeHooks('selectWarehouses', $parameters);
+ $reshook = $hookmanager->executeHooks('selectWarehouses', $parameters, $this);
if ($reshook < 0) setEventMessages($hookmanager->error, $hookmanager->errors, 'errors');
$this->loadWarehouses($fk_product, '', $filterstatus, true, $exclude, $stockMin, $orderBy);