Fixed a typo where method checkbox would not load the name field.
This commit is contained in:
parent
cfde9fcbf5
commit
0925fd17aa
1 changed files with 1 additions and 1 deletions
|
|
@ -115,7 +115,7 @@ sub checkbox {
|
||||||
my ($checkedText, $value);
|
my ($checkedText, $value);
|
||||||
$checkedText = ' checked="1"' if ($_[0]->{checked});
|
$checkedText = ' checked="1"' if ($_[0]->{checked});
|
||||||
$value = $_[0]->{value} || 1;
|
$value = $_[0]->{value} || 1;
|
||||||
return '<input type="checkbox" name="'.$_[1]->{name}.'" value="'.$value.'"'.$checkedText.' '.$_[0]->{extras}.'>';
|
return '<input type="checkbox" name="'.$_[0]->{name}.'" value="'.$value.'"'.$checkedText.' '.$_[0]->{extras}.'>';
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue