svn commit: r736297 - /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: r736297 - /ofbiz/trunk/applications/product/src/org/ofbiz/product/product/ProductServices.java

mor-2
Author: mor
Date: Wed Jan 21 04:15:06 2009
New Revision: 736297

URL: http://svn.apache.org/viewvc?rev=736297&view=rev
Log:
Fix NPE. Applied patch from OFBIZ-2134 (https://issues.apache.org/jira/browse/OFBIZ-2134)
Thanks Mridul Pathak for patch and Pranay Pandey for testing.  

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=736297&r1=736296&r2=736297&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 Wed Jan 21 04:15:06 2009
@@ -998,7 +998,7 @@
                                 ServiceUtil.returnError(e.getMessage());
                             }
                         } else {
-                            dataResourceCtx.put("dataResourceTypeId", "URL_RESOURCE");
+                            dataResourceCtx.put("dataResourceTypeId", "SHORT_TEXT");
                             Map<String, Object> dataResourceResult = FastMap.newInstance();
                             try {
                                 dataResourceResult = dispatcher.runSync("createDataResource", dataResourceCtx);
@@ -1028,7 +1028,7 @@
                         }
                     }
                 } else {
-                    dataResourceCtx.put("dataResourceTypeId", "URL_RESOURCE");
+                    dataResourceCtx.put("dataResourceTypeId", "SHORT_TEXT");
                     Map<String, Object> dataResourceResult = FastMap.newInstance();
                     try {
                         dataResourceResult = dispatcher.runSync("createDataResource", dataResourceCtx);