X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=mainpage.pl;h=ff234f6baab66961b99119d71ff8bf5dc0d87b95;hb=4b6d8bb0b6e0fc1e78ffa063740ca605e0efc367;hp=da6aaee92475fc9695ecaf4d4c8e6ec6f1385147;hpb=d90ff21454ed1d2f9682cbbfa7e07c87381a3257;p=srvgit diff --git a/mainpage.pl b/mainpage.pl index da6aaee924..ff234f6baa 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -31,6 +31,7 @@ use Koha::Patron::Modifications; use Koha::Patron::Discharge; use Koha::Reviews; use Koha::ArticleRequests; +use Koha::ProblemReports; my $query = new CGI; @@ -71,9 +72,10 @@ my $pending_discharge_requests = Koha::Patron::Discharge::count({ pending => 1 } my $pending_article_requests = Koha::ArticleRequests->search_limited( { status => Koha::ArticleRequest::Status::Pending, - $branch ? ( branchcode => $branch ) : (), + $branch ? ( 'me.branchcode' => $branch ) : (), } )->count; +my $pending_problem_reports = Koha::ProblemReports->search({ status => 'New' }); $template->param( pendingcomments => $pendingcomments, @@ -82,6 +84,7 @@ $template->param( pending_borrower_modifications => $pending_borrower_modifications, pending_discharge_requests => $pending_discharge_requests, pending_article_requests => $pending_article_requests, + pending_problem_reports => $pending_problem_reports ); output_html_with_http_headers $query, $cookie, $template->output;