X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;ds=sidebyside;f=members%2Fmembers-home.pl;h=1d8f1e5e9afedf864619021b344af7a1138f1f84;hb=2249ee1216ed004e61a34bc821d216f3471ef87b;hp=61eb83a93f9818d4eebf43a037064cc3dab731e7;hpb=e93cc449410f6c8d90b616f3d8e002e9ade4dadd;p=koha_fer diff --git a/members/members-home.pl b/members/members-home.pl index 61eb83a93f..1d8f1e5e9a 100755 --- a/members/members-home.pl +++ b/members/members-home.pl @@ -26,6 +26,7 @@ use C4::Context; use C4::Members; use C4::Branch; use C4::Category; +use Koha::Borrower::Modifications; my $query = new CGI; my $branch = $query->param('branchcode'); @@ -76,10 +77,15 @@ else { $template->param(categories=>\@categories); } + +my $pending_borrower_modifications = + Koha::Borrower::Modifications->GetPendingModificationsCount( $branch ); + $template->param( "AddPatronLists_".C4::Context->preference("AddPatronLists")=> "1", no_add => $no_add, + pending_borrower_modifications => $pending_borrower_modifications, ); -$template->param( 'alphabet' => C4::Context->preference('alphabet') ); +$template->param( 'alphabet' => C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ); output_html_with_http_headers $query, $cookie, $template->output;