From: Nahuel ANGELINETTI
Date: Mon, 4 May 2009 15:16:45 +0000 (+0200)
Subject: (bug #3174) show the member name in reports
X-Git-Tag: new_acq_a_porter~135
X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=78756abc37cc21f6213268ca9f79ebc66562a6a8;hp=e5120778c78ef3f073353fc114cddb6f3cc5fb19;p=koha_fer
(bug #3174) show the member name in reports
this patch show the member firstname and surname instead of only the borrowernumber in the guided reports page
Signed-off-by: Galen Charlton
---
diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm
index 03ee9ff55f..f4f86d1d6f 100644
--- a/C4/Reports/Guided.pm
+++ b/C4/Reports/Guided.pm
@@ -521,6 +521,10 @@ sub get_saved_reports {
my $result = $sth->fetchall_arrayref({});
foreach (@$result){
$_->{date_created} = format_date($_->{date_created});
+
+ my $member = C4::Members::GetMember($_->{borrowernumber});
+ $_->{borrowerfirstname} = $member->{firstname};
+ $_->{borrowersurname} = $member->{surname};
}
return $result;
}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tmpl
index 051a87070e..b7c4e5a3c1 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tmpl
@@ -108,7 +108,7 @@ canned reports and writing custom SQL reports.
|
|
|
- |
+, () |
|
">
|