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
This commit is contained in:
Ashish Vijaywargiya
2010-01-23 06:57:34 +00:00
parent 4051b7a1eb
commit e7ab963b60
2 changed files with 9 additions and 0 deletions
@@ -257,6 +257,9 @@ under the License.
<ProductContentType description="Add To Cart Label" hasTable="N" parentTypeId="" productContentTypeId="ADDTOCART_LABEL"/>
<ProductContentType description="Add To Cart Image" hasTable="N" parentTypeId="" productContentTypeId="ADDTOCART_IMAGE"/>
<ProductContentType description="Short Sales Pitch" hasTable="N" parentTypeId="" productContentTypeId="SHORT_SALES_PITCH"/>
<ProductContentType description="Installation" hasTable="N" parentTypeId="DIGITAL_DOWNLOAD" productContentTypeId="INSTALLATION"/>
<ProductContentType description="Specification" hasTable="N" parentTypeId="DIGITAL_DOWNLOAD" productContentTypeId="SPECIFICATION"/>
<ProductContentType description="Warranty" hasTable="N" parentTypeId="DIGITAL_DOWNLOAD" productContentTypeId="WARRANTY"/>
<ProdConfItemContentType description="Image" hasTable="N" parentTypeId="" confItemContentTypeId="IMAGE_URL"/>
<ProdConfItemContentType description="Description" hasTable="N" parentTypeId="" confItemContentTypeId="DESCRIPTION"/>
@@ -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;