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
|
* Return form to select type of barcode
|
||||||
*
|
*
|
||||||
* @param int $selected Id code pre-selected
|
* @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
|
* @param int $useempty Affiche valeur vide dans liste
|
||||||
* @return void
|
* @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;
|
global $langs,$conf;
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ class FormBarCode
|
|||||||
{
|
{
|
||||||
print '<form method="post" action="'.$page.'">';
|
print '<form method="post" action="'.$page.'">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
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 '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
$this->select_barcode_type($selected, $htmlname, 1);
|
$this->select_barcode_type($selected, $htmlname, 1);
|
||||||
|
|||||||
@ -1122,7 +1122,7 @@ else
|
|||||||
{
|
{
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formbarcode.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/html.formbarcode.class.php';
|
||||||
$formbarcode = new FormBarCode($db);
|
$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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user