From 30f3897fdae6c484c9cf47c4a242adae9c725353 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 27 Jul 2010 18:14:06 -0700 Subject: [PATCH] Handle import of templates with old attachments the correct way. --- lib/WebGUI/Asset/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Asset/Template.pm b/lib/WebGUI/Asset/Template.pm index b2457c0ad..9f8d14aa2 100644 --- a/lib/WebGUI/Asset/Template.pm +++ b/lib/WebGUI/Asset/Template.pm @@ -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 ); }