From 78756abc37cc21f6213268ca9f79ebc66562a6a8 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
---
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 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.
|
|
|
- |
+, () |
|
">
|
--
2.39.5