Bug 4461: Add problem reports link to mainpage and admin home
[koha-equinox.git] / mainpage.pl
index 49f46fc..75072b1 100755 (executable)
@@ -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;
 
@@ -74,6 +75,7 @@ my $pending_article_requests = Koha::ArticleRequests->search_limited(
         $branch ? ( 'me.branchcode' => $branch ) : (),
     }
 )->count;
+my $pending_problem_reports = Koha::ProblemReports->search({ status => 'N' });
 
 $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;