[Koha-patches] [PATCH] Bug 4210 Acquisitions suggestion templates have library name field, but data is not passed
Jane Wagner
jwagner at ptfs.com
Wed Feb 17 20:42:42 CET 2010
The various acquisitions suggestion templates in kohaclone/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion have a line like:
Dear <!-- TMPL_VAR NAME="LibraryName" --> user,
but the LibraryName variable is not passed to the suggestions script. This patch modifies C4/Suggestions.pm to add it into the list being passed to the templates.
---
C4/Suggestions.pm | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/C4/Suggestions.pm b/C4/Suggestions.pm
index 491739c..00058fd 100644
--- a/C4/Suggestions.pm
+++ b/C4/Suggestions.pm
@@ -436,7 +436,8 @@ sub ModStatus {
libfirstname => $emailinfo->{libfirstname},
byfirstname => $emailinfo->{byfirstname},
bysurname => $emailinfo->{bysurname},
- reason => $emailinfo->{reason}
+ reason => $emailinfo->{reason},
+ LibraryName => C4::Context->preference("LibraryName")
);
my %mail = (
To => $emailinfo->{byemail},
--
1.5.6.5
More information about the Koha-patches
mailing list