diff --git a/htdocs/product/stock/movement_card.php b/htdocs/product/stock/movement_card.php index 03171fbeac5..ea72983e810 100644 --- a/htdocs/product/stock/movement_card.php +++ b/htdocs/product/stock/movement_card.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004-2017 Laurent Destailleur + * Copyright (C) 2004-2020 Laurent Destailleur * Copyright (C) 2005-2014 Regis Houssin * Copyright (C) 2015 Juanjo Menent * Copyright (C) 2018 Ferran Marcet @@ -502,21 +502,10 @@ if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST)) } } -if (empty($search_inventorycode)) -{ - $sql .= $db->plimit($limit + 1, $offset); -} -else -{ - $limit = 0; -} - //print $sql; $resql = $db->query($sql); -if (!empty($search_inventorycode)) $limit = $db->num_rows($resql); - if ($resql) { $product = new Product($db); @@ -952,7 +941,6 @@ if ($resql) $arrayofuniqueproduct = array(); - while ($i < ($limit ? min($num, $limit) : $num)) { $objp = $db->fetch_object($resql);