Fix: Use bad parameter name
This commit is contained in:
commit
83cdb2167e
@ -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 '<form method="post" action="'.$page.'">';
|
||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||
print '<input type="hidden" name="action" value="setbarcodetype">';
|
||||
print '<input type="hidden" name="action" value="setfk_barcode_type">';
|
||||
print '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
|
||||
print '<tr><td>';
|
||||
$this->select_barcode_type($selected, $htmlname, 1);
|
||||
|
||||
@ -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
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user