my $input = new CGI;
my $branch = $input->param('branch');
-my $branch=C4::Context->preference('defaultbranch') unless $branch;
+$branch=C4::Context->preference('defaultBranch') unless $branch;
my $dbh = C4::Context->dbh();
# Set all the branches.
if (!defined($branch)) {
$branch =$listValues[4];
}
-my $branchesList = CGI::scrolling_list(-name => 'branch',
+my $branchesList = CGI::scrolling_list(-name => 'branch', -id=>'branch',
-values => \@listValues,
-labels => \%list,
-size => 1,
- -default => [$branch],
+ -default => [$branch],
-multiple => 0,
- -id => "branch",
- -onChange => "changeBranch()");
+ -onChange => "changeBranch()");
$branches->finish;