diff --git a/htdocs/core/class/html.formbarcode.class.php b/htdocs/core/class/html.formbarcode.class.php index 563fc4b00e7..9964657c3a3 100644 --- a/htdocs/core/class/html.formbarcode.class.php +++ b/htdocs/core/class/html.formbarcode.class.php @@ -100,11 +100,11 @@ class FormBarCode * Return form to select type of barcode * * @param int $selected Id code pre-selected - * @param string $htmlname Nom de la zone select + * @param string $htmlname Name of HTML select field * @param int $useempty Affiche valeur vide dans liste * @return void */ - function select_barcode_type($selected='',$htmlname='coder_id',$useempty=0) + function select_barcode_type($selected='',$htmlname='barcodetype_id',$useempty=0) { global $langs,$conf; @@ -169,7 +169,7 @@ class FormBarCode { print '
'; print ''; - print ''; + print ''; print ''; print '
'; $this->select_barcode_type($selected, $htmlname, 1); diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 4a53dfe66de..5e7ee4a4207 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -1122,7 +1122,7 @@ else { require_once DOL_DOCUMENT_ROOT.'/core/class/html.formbarcode.class.php'; $formbarcode = new FormBarCode($db); - $formbarcode->form_barcode_type($_SERVER['PHP_SELF'].'?id='.$object->id,$object->barcode_type,'barcodetype_id'); + $formbarcode->form_barcode_type($_SERVER['PHP_SELF'].'?id='.$object->id,$object->barcode_type,'fk_barcode_type'); } else {