Bug 6240 : pass a hash to template not a scalar
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 21 Apr 2011 19:32:34 +0000 (20:32 +0100)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 21 Apr 2011 19:42:03 +0000 (07:42 +1200)
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 <chrisc@catalyst.net.nz>
serials/subscription-add.pl

index dbda323..7fcccdf 100755 (executable)
@@ -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,