diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php
index 29f2b7fab48..0077338aae5 100644
--- a/htdocs/expedition/card.php
+++ b/htdocs/expedition/card.php
@@ -1246,8 +1246,11 @@ if ($action == 'create')
print '
';
if ($line->product_type == 0 || ! empty($conf->global->STOCK_SUPPORTS_SERVICES))
{
- if ($warehouseObject)
+ $warehouse_selected_id = GETPOST('entrepot_id','int');
+ if ($warehouse_selected_id > 0)
{
+ $warehouseObject=new Entrepot($db);
+ $warehouseObject->fetch($warehouse_selected_id);
print img_warning().' '.$langs->trans("NoProductToShipFoundIntoStock", $warehouseObject->libelle);
}
else
|