[Koha-patches] [PATCH] Bug 6240 : pass a hash to template not a scalar
Colin Campbell
colin.campbell at ptfs-europe.com
Thu Apr 21 21:32:34 CEST 2011
As subscription info was passed as a scalar hashref
template could not access any of the data contained therein
esp Bib and Vendor ids
---
serials/subscription-add.pl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl
index 72eee22..a548817 100755
--- a/serials/subscription-add.pl
+++ b/serials/subscription-add.pl
@@ -101,7 +101,7 @@ if ($op eq 'mod' || $op eq 'dup' || $op eq 'modsubscription') {
}
}
- $template->param($subs);
+ $template->param( %{$subs} );
$template->param("dow".$subs->{'dow'} => 1) if defined $subs->{'dow'};
$template->param(
$op => 1,
--
1.7.4.4
More information about the Koha-patches
mailing list