Suggestions.pm - bugfix need CGI argument to gettemplate
authorJoe Atzberger <joe.atzberger@liblime.com>
Wed, 9 Jan 2008 19:14:27 +0000 (13:14 -0600)
committerJoshua Ferraro <jmf@liblime.com>
Wed, 9 Jan 2008 20:49:55 +0000 (14:49 -0600)
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
C4/Suggestions.pm

index 80e0fbc..8212307 100644 (file)
@@ -19,10 +19,12 @@ package C4::Suggestions;
 
 
 use strict;
+use CGI;
+use Mail::Sendmail;
+
 use C4::Context;
 use C4::Output;
 use C4::Dates qw(format_date);
-use Mail::Sendmail;
 use vars qw($VERSION @ISA @EXPORT);
 
 BEGIN {
@@ -385,7 +387,7 @@ sub ModStatus {
     $sth = $dbh->prepare($queryMail);
     $sth->execute($suggestionid);
     my $emailinfo = $sth->fetchrow_hashref;
-    my $template = gettemplate("suggestion/mail_suggestion_$status.tmpl","intranet");
+    my $template = gettemplate("suggestion/mail_suggestion_$status.tmpl", "intranet", CGI->new());
 
     $template->param(
         byemail => $emailinfo->{byemail},