X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=admin%2Faqplan.pl;h=9cc8c5990d2d089db001c218911702dae30b16be;hb=01f7542f4bdbd9b31836ed8c3fc817b67086b8d2;hp=ceb99502e6b214a86243317a4d6a671b63e1e0b3;hpb=c8df6bdcc9fe2523a77c839270b31304d8e13ee5;p=koha_fer diff --git a/admin/aqplan.pl b/admin/aqplan.pl index ceb99502e6..9cc8c5990d 100755 --- a/admin/aqplan.pl +++ b/admin/aqplan.pl @@ -354,6 +354,10 @@ my ( @budget_lines, %cell_hash ); foreach my $budget (@budgets) { my $budget_lock; + unless (CanUserUseBudget($borrowernumber, $budget, $staff_flags)) { + $budget_lock = 1 + } + # check budget permission if ( $period->{budget_period_locked} == 1 ) { $budget_lock = 1; @@ -463,7 +467,7 @@ output_html_with_http_headers $input, $cookie, $template->output; sub _print_to_csv { my ( $header, $results ) = @_; - binmode STDOUT, ":utf8"; + binmode STDOUT, ':encoding(UTF-8)'; my $csv = Text::CSV_XS->new( { sep_char => $del,