From e7ab963b6054b6020a211bd073aaa2d78c04a90c Mon Sep 17 00:00:00 2001 From: Ashish Vijaywargiya Date: Sat, 23 Jan 2010 06:57:34 +0000 Subject: [PATCH] Applied patch from jira issue: OFBIZ-3422. Adding few more product content type records. Thanks Vivek for the contribution. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@902354 13f79535-47bb-0310-9956-ffa450edef68 --- applications/product/data/ProductTypeData.xml | 3 +++ .../actions/product/EditProductContentContent.groovy | 6 ++++++ 2 files changed, 9 insertions(+) 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;