fix package import and upgrade tests, add sql upgrade tests
This commit is contained in:
parent
94baba20fc
commit
577b804325
5 changed files with 44 additions and 19 deletions
|
|
@ -161,6 +161,7 @@ sub importAssetData {
|
|||
WebGUI::Asset->loadModule( $class );
|
||||
|
||||
my %properties = %{ $data->{properties} };
|
||||
delete $properties{tagId};
|
||||
if ($options->{inheritPermissions}) {
|
||||
delete $properties{ownerUserId};
|
||||
delete $properties{groupIdView};
|
||||
|
|
@ -173,6 +174,13 @@ sub importAssetData {
|
|||
$properties{isDefault} = 1;
|
||||
}
|
||||
|
||||
if ($options->{clearPackageFlag}) {
|
||||
$properties{isPackage} = 0;
|
||||
}
|
||||
if ($options->{setDefaultTemplate}) {
|
||||
$properties{isDefault} = 1;
|
||||
}
|
||||
|
||||
my $asset = eval { $class->new($session, $id, $version); };
|
||||
|
||||
if (! Exception::Class->caught()) { # update an existing revision
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue