Author: jleroux
Date: Thu Jan 20 15:32:04 2011
New Revision: 1061346
URL:
http://svn.apache.org/viewvc?rev=1061346&view=revLog:
A patch from Arun Patidar "Some misc issues in ebayStore component." (
https://issues.apache.org/jira/browse/OFBIZ-4118) - OFBIZ-4118
Patch for an issue in ebay component. Ebay category code may have more than 3 character so removed condition of ebay category code length.
Modified:
ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
Modified: ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java?rev=1061346&r1=1061345&r2=1061346&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java (original)
+++ ofbiz/trunk/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java Thu Jan 20 15:32:04 2011
@@ -292,8 +292,10 @@ public class ProductsExportToEbay {
if (categoryCode != null) {
if (categoryCode.indexOf("_") != -1) {
String[] params = categoryCode.split("_");
- if (params == null || params.length != 3) {
+ if (UtilValidate.isEmpty(params) || params[1].length() == 0) {
ServiceUtil.returnFailure(UtilProperties.getMessage(resource, "productsExportToEbay.parametersNotCorrectInGetEbayCategories", locale));
+ } else {
+ primaryCategoryId = params[1];
}
}else{
primaryCategoryId = categoryCode;