X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=tools%2Fholidays.pl;fp=tools%2Fholidays.pl;h=c2c03a36ed451d38ec067ed91a736688dc033d94;hb=04b2e6112f78b55ac542081ae87a41503c1b9b99;hp=e8561d8b13a0a8e39c535e3bf935721f35d10443;hpb=21b35727c0538e946eb3e02268e61b45b179164f;p=koha_gimpoz diff --git a/tools/holidays.pl b/tools/holidays.pl index e8561d8b13..c2c03a36ed 100755 --- a/tools/holidays.pl +++ b/tools/holidays.pl @@ -11,7 +11,7 @@ use C4::Calendar::Calendar; 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. @@ -26,14 +26,13 @@ my @listValues = keys(%list); 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;