fix: importPackage now allows you to skip site's autocommit settings. This is necessary for upgrades.

Upgrades were fixed to use the new options
This commit is contained in:
Doug Bell 2008-02-07 22:43:05 +00:00
parent e5ca1aa00d
commit 439fbce173
5 changed files with 21 additions and 7 deletions

View file

@ -34,6 +34,8 @@
- fix: Couldn't add single photos to gallery.
- fix: Make the Owner in editBranch to be the same as addEdit, allowing
any user to be selected (perlDreamer Consulting, LLC.)
- Added a simple SMTPD for use in testing (t/smtpd.pl)
- importPackage can now skip autocommit functions in the site settings
7.5.0
- rfe: Search Asset returns URLs

View file

@ -48,7 +48,7 @@ sub addPackage {
$storage->addFileFromFilesystem( $file );
# Import the package into the import node
my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage );
my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage, { skipAutoCommit => 1 } );
# Make the package not a package anymore
$package->update({ isPackage => 0 });

View file

@ -536,7 +536,7 @@ sub addPackage {
$storage->addFileFromFilesystem( $file );
# Import the package into the import node
my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage );
my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage, { skipAutoCommit => 0 } );
# Make the package not a package anymore
$package->update({ isPackage => 0 });

View file

@ -69,7 +69,7 @@ sub addPackage {
$storage->addFileFromFilesystem( $file );
# Import the package into the import node
my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage );
my $package = WebGUI::Asset->getImportNode($session)->importPackage( $storage, { skipAutoCommit => 0 } );
# Make the package not a package anymore
$package->update({ isPackage => 0 });