Packages used in upgrades get installed regardless of revisionDate. Fixes bug #11059

This commit is contained in:
Colin Kuskie 2009-09-29 11:51:35 -07:00
parent aad5f55601
commit 270ecb948f
4 changed files with 41 additions and 5 deletions

View file

@ -123,6 +123,11 @@ A hash reference of options to change how the import works
Forces the all assets in the package to inherit ownerUserId, groupIdView and groupIdEdit
from the asset where it is deployed.
=head4 overwriteLatest
Forces the package to ignore the revisionDate inside it. This makes the imported package the
latest revision of an asset.
=cut
sub importAssetData {
@ -132,7 +137,7 @@ sub importAssetData {
my $error = $self->session->errorHandler;
my $id = $data->{properties}{assetId};
my $class = $data->{properties}{className};
my $version = $data->{properties}{revisionDate};
my $version = $options->{overwriteLatest} ? 0 : $data->{properties}{revisionDate};
# Load the class
WebGUI::Asset->loadModule( $self->session, $class );