fix exporting RssFeed for uncommitted assets

This commit is contained in:
Graham Knop 2010-06-15 05:32:10 -05:00
parent 384fc59877
commit 4c7e00b298

View file

@ -213,7 +213,7 @@ around exportAssetCollateral => sub {
my $exportSession = $self->session->duplicate;
# open another session as the user doing the exporting...
my $selfdupe = WebGUI::Asset->newById( $exportSession, $self->getId );
my $selfdupe = WebGUI::Asset->newById( $exportSession, $self->assetId, $self->revisionDate );
# next, get the contents, open the file, and write the contents to the file.
my $fh = eval { $dest->open('>:utf8') };