Handle import of templates with old attachments the correct way.

This commit is contained in:
Colin Kuskie 2010-07-27 18:14:06 -07:00
parent 49374b43eb
commit 30f3897fda

View file

@ -455,7 +455,7 @@ Override to import attachments from old versions of WebGUI
sub importAssetCollateralData {
my ( $self, $data, @args ) = @_;
if ( $data->{template_attachments} ) {
$self->update( { attachmentsJson => $data->{template_attachments} } );
$self->update( { attachmentsJson => JSON::to_json($data->{template_attachments}) } );
}
return $self->SUPER::importAssetCollateralData( $data, @args );
}