files (and subclasses) and posts (and threads) can now export attachments in packages

fixed a couple of bugs
added some error handling and corruption detection
This commit is contained in:
JT Smith 2006-04-13 18:34:35 +00:00
parent e2109910fd
commit e262da13f8
4 changed files with 60 additions and 10 deletions

View file

@ -221,6 +221,21 @@ sub DESTROY {
}
#-------------------------------------------------------------------
=head2 exportAssetData() ( )
See WebGUI::AssetPackage::exportAssetData() for details.
=cut
sub exportAssetData {
my $self = shift;
my $data = $self->SUPER::exportAssetData;
push(@{$data->{storage}}, $self->get("storageId")) if ($self->get("storageId") ne "");
return $data;
}
#-------------------------------------------------------------------
=head2 formatContent ( [ content, contentType ])