From a725a08c13e38c79b6f32a011c5f82ab73ab38dc Mon Sep 17 00:00:00 2001 From: aspangaro Date: Wed, 28 May 2014 06:20:56 +0200 Subject: [PATCH] Fix :: List limit is not defined or based on limit product configuration Discussion http://www.dolibarr.fr/forum/527-bugs-sur-la-version-stable-courante/50579-transfert-stock-pas-sur-tous-les-produits#51265 --- htdocs/product/stock/massstockmove.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/htdocs/product/stock/massstockmove.php b/htdocs/product/stock/massstockmove.php index 54aa307fc95..7831baa5865 100644 --- a/htdocs/product/stock/massstockmove.php +++ b/htdocs/product/stock/massstockmove.php @@ -265,7 +265,15 @@ print ''; print ''; $filtertype=0; if (! empty($conf->global->STOCK_SUPPORTS_SERVICES)) $filtertype=''; -print $form->select_produits($id_product,'productid',$filtertype); +if ($conf->global->PRODUIT_LIMIT_SIZE <= 0) +{ + $limit=''; +} +else +{ + $limit = $conf->global->PRODUIT_LIMIT_SIZE; +} +print $form->select_produits($id_product,'productid',$filtertype,$limit); print ''; // In warehouse print '';