Reset the isDefault flag on core assets only, and provide a final way fix this crap once and for all.

This commit is contained in:
Colin Kuskie 2010-03-08 16:34:55 -08:00
parent c8ad650398
commit fe31cc96de
5 changed files with 118 additions and 3 deletions

View file

@ -150,6 +150,12 @@ sub importAssetData {
delete $properties{groupIdView};
delete $properties{groupIdEdit};
}
if ($options->{clearPackageFlag}) {
$properties{isPackage} = 0;
}
if ($options->{setDefaultTemplate}) {
$properties{isDefault} = 1;
}
if ($revisionExists) { # update an existing revision
$asset = WebGUI::Asset->new($self->session, $id, $class, $version);