fix: Importing a package that includes a CS generates multiple version tags

This commit is contained in:
Graham Knop 2007-05-23 00:11:57 +00:00
parent 14e951863c
commit 23a73e8862
2 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@
- fix: spectre fails on Admin.pm because of env_proxy
http://www.plainblack.com/bugs/tracker/spectre-fails-on-admin.pm-because-of-env_proxy
- fix: survey in response driven mode sometimes won't terminate correctly
- fix: Importing a package that includes a CS generates multiple version tags
7.3.17

View file

@ -147,11 +147,11 @@ sub importAssetData {
$asset = WebGUI::Asset->new($self->session, $id, $class);
if (defined $asset) { # create a new revision of an existing asset
$error->info("Creating a new revision of asset $id");
$asset = $asset->addRevision($data->{properties}, $version);
$asset = $asset->addRevision($data->{properties}, $version, {skipAutoCommitWorkflows => 1});
}
else { # add an entirely new asset
$error->info("Adding $id that didn't previously exist.");
$asset = $self->addChild($data->{properties}, $id, $version);
$asset = $self->addChild($data->{properties}, $id, $version, {skipAutoCommitWorkflows => 1});
}
}
return $asset;