diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index a7ec28348..d5036cad6 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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 diff --git a/lib/WebGUI/AssetPackage.pm b/lib/WebGUI/AssetPackage.pm index 9c56a3590..0f3538768 100644 --- a/lib/WebGUI/AssetPackage.pm +++ b/lib/WebGUI/AssetPackage.pm @@ -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}}) {