diff --git a/applications/product/data/ProductTypeData.xml b/applications/product/data/ProductTypeData.xml index 6c4cea44fe..4a0a7bab27 100644 --- a/applications/product/data/ProductTypeData.xml +++ b/applications/product/data/ProductTypeData.xml @@ -257,6 +257,9 @@ under the License. + + + diff --git a/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy b/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy index 6bcf0475d8..7f475cdda7 100644 --- a/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy +++ b/applications/product/webapp/catalog/WEB-INF/actions/product/EditProductContentContent.groovy @@ -134,6 +134,12 @@ if ("FULFILLMENT_EMAIL".equals(productContentTypeId)) { context.contentFormName = "EditProductContentSimpleText"; context.textData = textData; } +if (productContentTypeId) { + productContentType = delegator.findOne("ProductContentType", [productContentTypeId : productContentTypeId], false); + if (productContentType && "DIGITAL_DOWNLOAD".equals(productContentType.parentTypeId)) { + context.contentFormName = "EditProductContentDownload"; + } +} context.productContentData = productContentData; context.content = content;