Fix upgrade scripts to work with wg8.
This commit is contained in:
parent
019ebba6f2
commit
6702f076f1
2 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ sub addPackage {
|
||||||
# Turn off the package flag, and set the default flag for templates added
|
# Turn off the package flag, and set the default flag for templates added
|
||||||
my $assetIds = $package->getLineage( ['self','descendants'] );
|
my $assetIds = $package->getLineage( ['self','descendants'] );
|
||||||
for my $assetId ( @{ $assetIds } ) {
|
for my $assetId ( @{ $assetIds } ) {
|
||||||
my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId );
|
my $asset = WebGUI::Asset->newById( $session, $assetId );
|
||||||
if ( !$asset ) {
|
if ( !$asset ) {
|
||||||
print "Couldn't instantiate asset with ID '$assetId'. Please check package '$file' for corruption.\n";
|
print "Couldn't instantiate asset with ID '$assetId'. Please check package '$file' for corruption.\n";
|
||||||
next;
|
next;
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ sub addPackage {
|
||||||
# Turn off the package flag, and set the default flag for templates added
|
# Turn off the package flag, and set the default flag for templates added
|
||||||
my $assetIds = $package->getLineage( ['self','descendants'] );
|
my $assetIds = $package->getLineage( ['self','descendants'] );
|
||||||
for my $assetId ( @{ $assetIds } ) {
|
for my $assetId ( @{ $assetIds } ) {
|
||||||
my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId );
|
my $asset = WebGUI::Asset->newById( $session, $assetId );
|
||||||
if ( !$asset ) {
|
if ( !$asset ) {
|
||||||
print "Couldn't instantiate asset with ID '$assetId'. Please check package '$file' for corruption.\n";
|
print "Couldn't instantiate asset with ID '$assetId'. Please check package '$file' for corruption.\n";
|
||||||
next;
|
next;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue