X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=circ%2Foverdue.pl;h=7152d44a09794086fc4e6640667c30dc8d6c719d;hb=0ad2b08c28a88ade055f95045b4e4b8222cde612;hp=93f267fe2e945086b0acd6b9323392f491041363;hpb=9d0ab08a9b227640a33699f3467e84a7944e97e2;p=koha.git diff --git a/circ/overdue.pl b/circ/overdue.pl index 93f267fe2e..7152d44a09 100755 --- a/circ/overdue.pl +++ b/circ/overdue.pl @@ -46,7 +46,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( query => $input, type => "intranet", authnotrequired => 0, - flagsrequired => { reports => 1, circulate => 1 }, + flagsrequired => { reports => 1, circulate => "circulate_remaining_permissions" }, debug => 1, } ); @@ -56,7 +56,8 @@ my $dbh = C4::Context->dbh; # download the complete CSV if ($op eq 'csv') { warn "BRANCH : $branchfilter"; - my $csv = `../misc/cronjobs/overdue_notices.pl -csv -n`; # -library $branchfilter`; + my $lib = $branchfilter ? "-library $branchfilter" :''; + my $csv = `../misc/cronjobs/overdue_notices.pl -csv -n $lib`; print $input->header(-type => 'application/vnd.sun.xml.calc', -encoding => 'utf-8', -attachment=>"overdues.csv",