diff --git a/htdocs/product/stock/massstockmove.php b/htdocs/product/stock/massstockmove.php
index c7b7ed41034..b8ec52efcab 100644
--- a/htdocs/product/stock/massstockmove.php
+++ b/htdocs/product/stock/massstockmove.php
@@ -378,7 +378,7 @@ print '';
if ($conf->productbatch->enabled)
{
print '
';
- print '';
+ print '';
print ' | ';
}
// In warehouse
@@ -390,7 +390,7 @@ print '';
print $formproduct->selectWarehouses($id_tw,'id_tw','',1);
print ' | ';
// Qty
-print ' | ';
+print ' | ';
// Button to add line
print ' | ';
diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php
index 7af08ee6575..21f492e0c00 100644
--- a/htdocs/product/stock/replenish.php
+++ b/htdocs/product/stock/replenish.php
@@ -75,13 +75,15 @@ if (! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT) || ! empty($conf->global
{
$virtualdiffersfromphysical=1; // According to increase/decrease stock options, virtual and physical stock may differs.
}
+$usevirtualstock=0;
+if ($mode == 'virtual') $usevirtualstock=1;
/*
* Actions
*/
-if (isset($_POST['button_removefilter']) || isset($_POST['valid']))
+if (GETPOST("button_removefilter_x") || GETPOST("button_removefilter.x") || GETPOST("button_removefilter") || isset($_POST['valid'])) // Both test are required to be compatible with all browsers
{
$sref = '';
$snom = '';