X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=members%2Fguarantor_search.pl;h=352f124a625150a7ffc15d8a921dcc59e3e41d72;hb=b689c6f9fe31dea49657b65af4f6830af1b17433;hp=d34b82821040b4310706159fe537bd3b77580a47;hpb=6ee8dd3a597d08ccc5122473e55790d3f21d5163;p=koha.git diff --git a/members/guarantor_search.pl b/members/guarantor_search.pl index d34b828210..352f124a62 100755 --- a/members/guarantor_search.pl +++ b/members/guarantor_search.pl @@ -21,7 +21,6 @@ use Modern::Perl; use CGI qw ( -utf8 ); use C4::Auth; -use C4::Branch qw( GetBranches ); use C4::Output; use C4::Members; @@ -45,9 +44,6 @@ my $op = $input->param('op') || ''; my $referer = $input->referer(); -my $onlymine = C4::Branch::onlymine; -my $branches = C4::Branch::GetBranches( $onlymine ); - my $patron_categories = Koha::Patron::Categories->search_limited; $template->param( view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results", @@ -56,7 +52,6 @@ $template->param( selection_type => 'select', alphabet => ( C4::Context->preference('alphabet') || join ' ', 'A' .. 'Z' ), categories => $patron_categories, - branches => [ map { { branchcode => $_->{branchcode}, branchname => $_->{branchname} } } values %$branches ], aaSorting => 1, ); output_html_with_http_headers( $input, $cookie, $template->output );