From 88aadae934392182bdc0a777aa6707d0501990b5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 1 Dec 2022 11:46:48 +0100 Subject: [PATCH] Fix barcode choice lost if error --- htdocs/product/fournisseurs.php | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/htdocs/product/fournisseurs.php b/htdocs/product/fournisseurs.php index 9e56d452325..9c9f0d3f982 100644 --- a/htdocs/product/fournisseurs.php +++ b/htdocs/product/fournisseurs.php @@ -753,16 +753,11 @@ END; // Barcode type print ''; - print ''.$langs->trans('BarcodeType').''; + print ''.$langs->trans('GencodBuyPrice').''; print ''; - print $formbarcode->selectBarcodeType(($rowid ? $object->supplier_fk_barcode_type : getDolGlobalint("PRODUIT_DEFAULT_BARCODE_TYPE")), 'fk_barcode_type', 1); - print ''; - print ''; - - // Barcode value - print ''; - print ''.$langs->trans('BarcodeValue').''; - print ''.img_picto('', 'barcode', 'class="pictofixedwidth"').''; + print img_picto('', 'barcode', 'class="pictofixedwidth"'); + print $formbarcode->selectBarcodeType((GETPOSTISSET('fk_barcode_type') ? GETPOST('fk_barcode_type', 'int') : ($rowid ? $object->supplier_fk_barcode_type : getDolGlobalint("PRODUIT_DEFAULT_BARCODE_TYPE"))), 'fk_barcode_type', 1); + print ' '; print ''; }