Author: hansbak
Date: Mon May 16 08:46:29 2011
New Revision: 1103651
URL:
http://svn.apache.org/viewvc?rev=1103651&view=revLog:
downloadable content did not set name and mime type by upload
Modified:
ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductContentServices.xml
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductContentServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductContentServices.xml?rev=1103651&r1=1103650&r2=1103651&view=diff==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductContentServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/product/ProductContentServices.xml Mon May 16 08:46:29 2011
@@ -78,6 +78,8 @@ under the License.
<set-service-fields service-name="persistContentAndAssoc" map="parameters" to-map="persistContentAndAssoc"/>
<set field="persistContentAndAssoc.contentTypeId" value="DOCUMENT"/>
<set field="persistContentAndAssoc.dataResourceTypeId" value="IMAGE_OBJECT"/>
+ <set field="persistContentAndAssoc.contentName" from-field="parameters._imageData_fileName"/>
+ <set field="persistContentAndAssoc.mimeTypeId" from-field="parameters._imageData_contentType"/>
<call-service service-name="persistContentAndAssoc" in-map-name="persistContentAndAssoc" break-on-error="true" >
<result-to-field result-name="contentId" field="createProductContent.contentId"/>
</call-service>