From f2f62e970f5948318088628932bd0a2a1b8875b5 Mon Sep 17 00:00:00 2001 From: Colin Campbell Date: Thu, 21 Apr 2011 20:24:04 +0100 Subject: [PATCH] Bug 6240 : pass a hash to template not a scalar Content-Type: text/plain; charset="utf-8" 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