prevent duplicate package importing in upgrades from failing
This commit is contained in:
parent
2a1f038ba1
commit
5ecc986ec6
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ sub importAssetData {
|
||||||
my $error = $self->session->errorHandler;
|
my $error = $self->session->errorHandler;
|
||||||
my $id = $data->{properties}{assetId};
|
my $id = $data->{properties}{assetId};
|
||||||
my $class = $data->{properties}{className};
|
my $class = $data->{properties}{className};
|
||||||
my $version = $options->{overwriteLatest} ? 0 : $data->{properties}{revisionDate};
|
my $version = $options->{overwriteLatest} ? time : $data->{properties}{revisionDate};
|
||||||
|
|
||||||
# Load the class
|
# Load the class
|
||||||
WebGUI::Asset->loadModule( $self->session, $class );
|
WebGUI::Asset->loadModule( $self->session, $class );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue