fixed: packages don't include archived assets

This commit is contained in:
Graham Knop 2008-08-15 19:39:44 +00:00
parent b143376cf0
commit b2e846bbcf
2 changed files with 2 additions and 1 deletions

View file

@ -11,6 +11,7 @@
file if you have multiple attached.
- fixed: Gallery album thumbnail titles now link to the image info rather than back to the album.
- fixed again: The bug enigmatically named "product".
- fixed: packages don't include archived assets
7.5.20
- fixed: DataForm acknowledgement screen shows incorrect value for Date/Time fields

View file

@ -63,7 +63,7 @@ Turns this package into a package file and returns the storage location object o
sub exportPackage {
my $self = shift;
my $storage = WebGUI::Storage->createTemp($self->session);
foreach my $asset (@{$self->getLineage(["self","descendants"],{returnObjects=>1})}) {
foreach my $asset (@{$self->getLineage(["self","descendants"],{returnObjects=>1, statusToInclude=>['approved', 'archived']})}) {
my $data = $asset->exportAssetData;
$storage->addFileFromScalar($data->{properties}{lineage}.".json", JSON->new->utf8->pretty->encode($data));
foreach my $storageId (@{$data->{storage}}) {