From c214dd0675ded6f82827c572cd82ae425b15bc6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Thu, 28 Nov 2019 21:23:53 +0100 Subject: [PATCH] Form select_produits returns void --- htdocs/categories/viewcat.php | 2 +- htdocs/margin/productMargins.php | 4 ++-- htdocs/product/stock/massstockmove.php | 2 +- htdocs/product/stock/tpl/stockcorrection.tpl.php | 2 +- htdocs/product/stock/tpl/stocktransfer.tpl.php | 2 +- htdocs/projet/tasks/time.php | 2 +- htdocs/societe/price.php | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index 789490a605c..7d3c64019a9 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -372,7 +372,7 @@ if ($type == Categorie::TYPE_PRODUCT) print ''; print ''; print ''; print '
'; print $langs->trans("AddProductServiceIntoCategory").'  '; - print $form->select_produits('', 'elemid', '', 0, 0, -1, 2, '', 1); + $form->select_produits('', 'elemid', '', 0, 0, -1, 2, '', 1); print '
'; diff --git a/htdocs/margin/productMargins.php b/htdocs/margin/productMargins.php index 66077dc8708..2cc0dd4e3b3 100644 --- a/htdocs/margin/productMargins.php +++ b/htdocs/margin/productMargins.php @@ -105,7 +105,7 @@ print ''; if ($id > 0) { print ''; print ''; if (! $sortorder) $sortorder="DESC"; @@ -114,7 +114,7 @@ if ($id > 0) { else { print ''; print ''; } diff --git a/htdocs/product/stock/massstockmove.php b/htdocs/product/stock/massstockmove.php index 22c8787348a..444440df4a3 100644 --- a/htdocs/product/stock/massstockmove.php +++ b/htdocs/product/stock/massstockmove.php @@ -369,7 +369,7 @@ else $limit = $conf->global->PRODUIT_LIMIT_SIZE; } -print $form->select_produits($id_product, 'productid', $filtertype, $limit, 0, -1, 2, '', 0, array(), 0, '1', 0, 'minwidth200imp maxwidth300', 1); +$form->select_produits($id_product, 'productid', $filtertype, $limit, 0, -1, 2, '', 0, array(), 0, '1', 0, 'minwidth200imp maxwidth300', 1); print ''; // Batch number if ($conf->productbatch->enabled) diff --git a/htdocs/product/stock/tpl/stockcorrection.tpl.php b/htdocs/product/stock/tpl/stockcorrection.tpl.php index 9f0c4dd376e..e2e7745fd0d 100644 --- a/htdocs/product/stock/tpl/stockcorrection.tpl.php +++ b/htdocs/product/stock/tpl/stockcorrection.tpl.php @@ -81,7 +81,7 @@ if ($object->element == 'stock') { print ''; print ''; print ''; } diff --git a/htdocs/projet/tasks/time.php b/htdocs/projet/tasks/time.php index 0f9e9fb6357..e5ed76cfc84 100644 --- a/htdocs/projet/tasks/time.php +++ b/htdocs/projet/tasks/time.php @@ -853,7 +853,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0) print $langs->trans('ServiceToUseOnLines'); print ''; print ''; print ''; } diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php index 722d2ba2273..3d91fac7c29 100644 --- a/htdocs/societe/price.php +++ b/htdocs/societe/price.php @@ -263,7 +263,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) { print ''; print ''; print ''; print '';
'.$langs->trans('ChooseProduct/Service').''; - print $form->select_produits($id, 'id', '', 20, 0, 1, 2, '', 1, array(), 0, 'All'); + $form->select_produits($id, 'id', '', 20, 0, 1, 2, '', 1, array(), 0, 'All'); print '
'.$langs->trans('ChooseProduct/Service').''; - print $form->select_produits('', 'id', '', 20, 0, 1, 2, '', 1, array(), 0, 'All'); + $form->select_produits('', 'id', '', 20, 0, 1, 2, '', 1, array(), 0, 'All'); print '
'.$langs->trans("Product").''; - print $form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES)?'0':''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500'); + $form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES)?'0':''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500'); print '   '.$langs->trans("Product").''; - print $form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES)?'0':''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500'); + $form->select_produits(GETPOST('product_id', 'int'), 'product_id', (empty($conf->global->STOCK_SUPPORTS_SERVICES)?'0':''), 0, 0, -1, 2, '', 0, null, 0, 1, 0, 'maxwidth500'); print ''; - print $form->select_produits('', 'productid', '1', 0, 0, 1, 2, '', 0, array(), 0, 'None', 0, 'maxwidth500'); + $form->select_produits('', 'productid', '1', 0, 0, 1, 2, '', 0, array(), 0, 'None', 0, 'maxwidth500'); print '
'.$langs->trans('Product').''; - print $form->select_produits('', 'prodid', '', 0); + $form->select_produits('', 'prodid', '', 0); print '