From 67d73c54882b616101fadf81a5ffef8c9bed76c4 Mon Sep 17 00:00:00 2001 From: Laurent De Coninck Date: Sun, 12 Jan 2020 21:52:42 +0100 Subject: [PATCH 1/2] Fix the select of the provider for one product --- htdocs/product/stock/replenish.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 438bcaa79af..5164b72fa4a 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -724,7 +724,7 @@ while ($i < ($limit ? min($num, $limit) : $num)) // Supplier print ''; - $form->select_product_fourn_price($prod->id, 'fourn'.$i, $fk_supplier); + print $form->select_product_fourn_price($prod->id, 'fourn'.$i, $fk_supplier); print ''; // Fields from hook From 66e08103de4cae0f6f7ab2111e653ef202d998d3 Mon Sep 17 00:00:00 2001 From: Laurent De Coninck Date: Mon, 13 Jan 2020 10:43:39 +0100 Subject: [PATCH 2/2] change the PHPdoc --- htdocs/core/class/html.form.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 9bd402a1485..fbd00c99281 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3008,7 +3008,8 @@ class Form * @param int $productid Id of product * @param string $htmlname Name of HTML field * @param int $selected_supplier Pre-selected supplier if more than 1 result - * @return void + * + * @return string */ public function select_product_fourn_price($productid, $htmlname = 'productfournpriceid', $selected_supplier = '') {