}
my @a = qw(transdate invnumber name);
- push @a, "employee" if $self->{l_employee};
+ push @a, "employee" if $form->{l_employee};
my $sortdir = !defined $form->{sortdir} ? 'ASC' : $form->{sortdir} ? 'ASC' : 'DESC';
my $sortorder = join(', ', map { "$_ $sortdir" } @a);
my $form = $main::form;
my @items = qw(old_callback previousform);
- push(@items, @{ $form->{"hidden"} });
+ push @items, @{ $form->{"hidden"} } if ref $form->{hidden} eq 'ARRAY';
map({
print("<input type=hidden name=$_ value=\"" . quot($form->{$_}) . "\">\n"
);