From 5e1264687a55e19b0da10f41b65c895a01740a53 Mon Sep 17 00:00:00 2001
From: Nahuel ANGELINETTI
Date: Mon, 4 May 2009 17:16:45 +0200
Subject: [PATCH] (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
Signed-off-by: Henri-Damien LAURENT
---
C4/Reports/Guided.pm | 4 ++++
.../prog/en/modules/reports/guided_reports_start.tmpl | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/C4/Reports/Guided.pm b/C4/Reports/Guided.pm
index 959c06d407..509acd1bd2 100644
--- a/C4/Reports/Guided.pm
+++ b/C4/Reports/Guided.pm
@@ -520,6 +520,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 bd43efc85a..7b09bfcf6d 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.
|
|
|
- |
+, () |
|
">
|
--
2.39.5