Subject: | Template doesn't render with version 0.33 |
Date: | Tue, 17 Sep 2013 13:57:19 -0400 |
To: | bug-Catalyst-View-Email [...] rt.cpan.org |
From: | Stefan Michalowski <mitch [...] ptaff.ca> |
Hello,
I upgraded to version of Catalyst::View::Email and it broke my
application. The application would send empty emails because somehow
Catalyst::View::Email stopped working. The previous version (0.31) worked.
I compared both version of Catalyst::View:Email::Template and saw the
following difference (around line 294):
The following in 0.31:
push @parts,
$self->generate_part( $c,
{ template => $c->stash->{$stash_key}->{template}, } );
}
was replaced with the following in 0.33:
my $part_args = { template => $c->stash->{$stash_key}->{template} };
if (my $ctype = $c->stash->{$stash_key}->{content_type}) {
$part_args->{content_type} = $ctype;
}
push @parts,
$self->generate_part( $c, $part_args );
When I moved the 0.31 version into the 0.33 version and restarted my
application, it worked as previously.
Best Regards,
--
Stefan Michalowski, M. Sc.
mitch@ptaff.ca
Message body not shown because it is not plain text.