Bug 22674: Change wording of payments in the GUI
[koha-equinox.git] / mainpage.pl
index 47f56ad..49f46fc 100755 (executable)
@@ -71,7 +71,7 @@ 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;
 
@@ -84,11 +84,4 @@ $template->param(
     pending_article_requests       => $pending_article_requests,
 );
 
-#
-# warn user if they are using mysql/admin login
-#
-unless ($loggedinuser) {
-    $template->param(adminWarning => 1);
-}
-
 output_html_with_http_headers $query, $cookie, $template->output;