From 9f15d67b5a0a715695c52e6beb358038b4084503 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Wed, 23 Apr 2014 14:24:25 +0300 Subject: [PATCH] [Signed-off] Show guarantees for staff patron details too. Staffers are adult borrowers. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To test: 1) Look at a staffer's detail page. Even if he or she has guarantees, they won't show up there. 2) Install patch 3) Look at a staffer's detail page. If the staffer has guarantees, they will be shown. http://bugs.koha-community.org/show_bug.cgi?id=12132 Followed test plan. Works as expected. Signed-off-by: Marc VĂ©ron --- members/moremember.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/members/moremember.pl b/members/moremember.pl index d78cc1f..28f82ac 100755 --- a/members/moremember.pl +++ b/members/moremember.pl @@ -171,7 +171,7 @@ if ( $category_type eq 'C') { if ( $data->{'ethnicity'} || $data->{'ethnotes'} ) { $template->param( printethnicityline => 1 ); } -if ( $category_type eq 'A' || $category_type eq 'I') { +if ( $category_type eq 'A' || $category_type eq 'I' || $category_type eq 'S') { $template->param( isguarantee => 1 ); # FIXME @@ -191,7 +191,7 @@ if ( $category_type eq 'A' || $category_type eq 'I') { ); } $template->param( guaranteeloop => \@guaranteedata ); - ( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' || $category_type eq 'I' ); + ( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' || $category_type eq 'I' || $category_type eq 'S' ); } else { if ($data->{'guarantorid'}){ -- 1.7.10.4