Lines 52-67
if ($datecancelrange_dt){
Link Here
|
52 |
if($allbranches) { |
52 |
if($allbranches) { |
53 |
my $libraries = Koha::Libraries->search; |
53 |
my $libraries = Koha::Libraries->search; |
54 |
while ( my $library = $libraries->next ) { |
54 |
while ( my $library = $libraries->next ) { |
55 |
edit_holiday($showoperation, $library->branchcode, $weekday, $day, $month, $year, $title, $description, $holidaytype); |
55 |
edit_holiday($showoperation, $library->branchcode, $weekday, $day, $month, $year, $title, $description, $holidaytype, \@holiday_list); |
56 |
} |
56 |
} |
57 |
} else { |
57 |
} else { |
58 |
edit_holiday($showoperation, $branchcode, $weekday, $day, $month, $year, $title, $description, $holidaytype); |
58 |
edit_holiday($showoperation, $branchcode, $weekday, $day, $month, $year, $title, $description, $holidaytype, \@holiday_list); |
59 |
} |
59 |
} |
60 |
|
60 |
|
61 |
print $input->redirect("/cgi-bin/koha/tools/holidays.pl?branch=$originalbranchcode&calendardate=$calendardate"); |
61 |
print $input->redirect("/cgi-bin/koha/tools/holidays.pl?branch=$originalbranchcode&calendardate=$calendardate"); |
62 |
|
62 |
|
63 |
sub edit_holiday { |
63 |
sub edit_holiday { |
64 |
($showoperation, $branchcode, $weekday, $day, $month, $year, $title, $description, $holidaytype) = @_; |
64 |
($showoperation, $branchcode, $weekday, $day, $month, $year, $title, $description, $holidaytype, @holiday_list) = @_; |
65 |
my $calendar = C4::Calendar->new(branchcode => $branchcode); |
65 |
my $calendar = C4::Calendar->new(branchcode => $branchcode); |
66 |
|
66 |
|
67 |
if ($showoperation eq 'exception') { |
67 |
if ($showoperation eq 'exception') { |
68 |
- |
|
|