Hi there,
I'm integrating glist with community v1.1.1 and have run across a bug I'm unclear on how to fix
In Community/Apps/Local/GList.pm
sub signup_form {
....
this part fails:
my $input_html = $disp->checkbox({
name => $col,
names => \@names,
values => \@values,
value => $selected,
blank => 0
});
in Display/HTML.pm
sub checkbox {
# ---------------------------------------------------------------
# Create a checkbox set.
#
my ($self, $opts) = @_;
my $name = exists $opts->{name} ? $opts->{name} : return $self->error ("BADARGS", "FATAL", "No form name passed to select");
my ($names, $values) = $self->_get_multi ($opts);
.....
The last line does not return $names or $values, so presumably there's something wrong with the input, but I'm not sure what it is.
I have double checked that there is valid data for $col, \@names, and \@values and $values.
thanks for posting a fix.
peace.
klangan
Okay, figured it out. I added a colum called def as seen below.
my $input_html = $disp->checkbox({
name => $col,
names => \@names,
values => \@values,
value => $selected,
blank => 0,
def => {form_names=>\@names, form_values => \@values}
});
I'm integrating glist with community v1.1.1 and have run across a bug I'm unclear on how to fix
In Community/Apps/Local/GList.pm
sub signup_form {
....
this part fails:
my $input_html = $disp->checkbox({
name => $col,
names => \@names,
values => \@values,
value => $selected,
blank => 0
});
in Display/HTML.pm
sub checkbox {
# ---------------------------------------------------------------
# Create a checkbox set.
#
my ($self, $opts) = @_;
my $name = exists $opts->{name} ? $opts->{name} : return $self->error ("BADARGS", "FATAL", "No form name passed to select");
my ($names, $values) = $self->_get_multi ($opts);
.....
The last line does not return $names or $values, so presumably there's something wrong with the input, but I'm not sure what it is.
I have double checked that there is valid data for $col, \@names, and \@values and $values.
thanks for posting a fix.
peace.
klangan
Okay, figured it out. I added a colum called def as seen below.
my $input_html = $disp->checkbox({
name => $col,
names => \@names,
values => \@values,
value => $selected,
blank => 0,
def => {form_names=>\@names, form_values => \@values}
});