Author: ashish
Date: Tue Aug 11 06:33:00 2009
New Revision: 803003
URL:
http://svn.apache.org/viewvc?rev=803003&view=revLog:
Applied fix from trunk revision: 803002.
Applied patch from jira issue - OFBIZ-2822 - Fix for adding alternate images from catalog manager.
Thanks Vivek & Mridul for fixing this bug and providing patch for the same.
Modified:
ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java
Modified: ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java?rev=803003&r1=803002&r2=803003&view=diff==============================================================================
--- ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java (original)
+++ ofbiz/branches/release09.04/applications/product/src/org/ofbiz/product/product/ProductServices.java Tue Aug 11 06:33:00 2009
@@ -1019,6 +1019,7 @@
}
} else {
dataResourceCtx.put("dataResourceTypeId", "SHORT_TEXT");
+ dataResourceCtx.put("mimeTypeId", "text/html");
Map<String, Object> dataResourceResult = FastMap.newInstance();
try {
dataResourceResult = dispatcher.runSync("createDataResource", dataResourceCtx);
@@ -1049,6 +1050,7 @@
}
} else {
dataResourceCtx.put("dataResourceTypeId", "SHORT_TEXT");
+ dataResourceCtx.put("mimeTypeId", "text/html");
Map<String, Object> dataResourceResult = FastMap.newInstance();
try {
dataResourceResult = dispatcher.runSync("createDataResource", dataResourceCtx);