From 01ccaf84e5dfc71e13a4a0d12ba422621909b953 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Thu, 21 Apr 2011 20:32:34 +0100 Subject: [PATCH] Bug 6240 : pass a hash to template not a scalar As subscription info was passed as a scalar hashref template could not access any of the data contained therein esp Bib and Vendor ids Signed-off-by: Chris Cormack --- serials/subscription-add.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl index dbda323602..7fcccdff29 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, -- 2.39.5