fix: Made it possible to import exported collateral asset data

This commit is contained in:
Martin Kamerbeek 2007-09-18 21:31:24 +00:00
parent ae0717a560
commit 1b0a0a477c
2 changed files with 19 additions and 0 deletions

View file

@ -9,6 +9,8 @@
- add type variable to Data Form record loop
- fix: Select All button javascript would not work in IE
- fix: Events were missing startDateMonth and endDateMonth template vars
- fix: Fixed a bug which caused assets to be uneditable if their edit group
had been deleted. (Martin Kamerbeek / Oqapi)
- fix: Events don't display on last day of week on week view
7.4.6

View file

@ -161,6 +161,22 @@ sub importAssetData {
#-------------------------------------------------------------------
=head2 importAssetCollateralData ( data )
Allows you to import collateral data that is exported with your asset.
=head3 data
Hashref containing the assets exported data.
=cut
sub importAssetCollateralData {
# This is an interface method only. It is to be overloaded if needed.
}
#-------------------------------------------------------------------
=head2 importPackage ( storageLocation )
Imports the data from a webgui package file.
@ -196,6 +212,7 @@ sub importPackage {
}
my $asset = $assets{$data->{properties}{parentId}} || $self;
my $newAsset = $asset->importAssetData($data);
$newAsset->importAssetCollateralData($data);
$assets{$newAsset->getId} = $newAsset;
}
if ($self->session->setting->get("autoRequestCommit")) {