Skip to content

Commit

Permalink
Fix: Use bad parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Sep 9, 2012
2 parents 8f20d31 + fcce220 commit 83cdb21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions htdocs/core/class/html.formbarcode.class.php
Expand Up @@ -100,11 +100,11 @@ function setBarcodeEncoder($selected,$barcodelist,$code_id,$idForm='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;

Expand Down Expand Up @@ -169,7 +169,7 @@ function form_barcode_type($page, $selected='', $htmlname='barcodetype_id')
{
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);
Expand Down
2 changes: 1 addition & 1 deletion htdocs/product/fiche.php
Expand Up @@ -1122,7 +1122,7 @@
{
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
{
Expand Down

0 comments on commit 83cdb21

Please sign in to comment.