svn commit: r803002 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r803002 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java

ashish-18
Author: ashish
Date: Tue Aug 11 06:30:41 2009
New Revision: 803002

URL: http://svn.apache.org/viewvc?rev=803002&view=rev
Log:
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/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java

Modified: ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java?rev=803002&r1=803001&r2=803002&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java (original)
+++ ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java Tue Aug 11 06:30:41 2009
@@ -1045,6 +1045,7 @@
                             }
                         } else {
                             dataResourceCtx.put("dataResourceTypeId", "SHORT_TEXT");
+                            dataResourceCtx.put("mimeTypeId", "text/html");
                             Map<String, Object> dataResourceResult = FastMap.newInstance();
                             try {
                                 dataResourceResult = dispatcher.runSync("createDataResource", dataResourceCtx);
@@ -1075,6 +1076,7 @@
                     }
                 } else {
                     dataResourceCtx.put("dataResourceTypeId", "SHORT_TEXT");
+                    dataResourceCtx.put("mimeTypeId", "text/html");
                     Map<String, Object> dataResourceResult = FastMap.newInstance();
                     try {
                         dataResourceResult = dispatcher.runSync("createDataResource", dataResourceCtx);