From cc2f7ccd1081b1de3cbbd5abf0e13e3a6bd2d66d Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 19 Jan 2015 11:47:46 +0100 Subject: [PATCH] [PASSED QA] Bug 13021: Reintroduce the name column for guarantor search Previous patch removed the name column, it's a regression. This patch reintroduces it. Signed-off-by: Kyle M Hall --- .../en/modules/members/tables/guarantor_search.tt | 2 ++ members/guarantor_search.pl | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt index 0a375f8..dab1f23 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt @@ -9,6 +9,8 @@ { "dt_cardnumber": "[% data.cardnumber %]", + "dt_name": + "[% INCLUDE 'patron-title.inc' borrowernumber = data.borrowernumber category_type = data.category_type firstname = data.firstname surname = data.surname othernames = data.othernames cardnumber = data.cardnumber invert_name = 1%]", "dt_dateofbirth": "[% data.dateofbirth | $KohaDates %]", "dt_address": diff --git a/members/guarantor_search.pl b/members/guarantor_search.pl index 49bd57d..6e4e6ab 100755 --- a/members/guarantor_search.pl +++ b/members/guarantor_search.pl @@ -44,7 +44,7 @@ my $referer = $input->referer(); $template->param( view => ( $input->request_method() eq "GET" ) ? "show_form" : "show_results", - columns => ['cardnumber', 'dateofbirth', 'address', 'action' ], + columns => ['cardnumber', 'name', 'dateofbirth', 'address', 'action' ], json_template => 'members/tables/guarantor_search.tt', selection_type => 'select', ); -- 1.7.2.5