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
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches