From 6195a7ee3cd11c826044d1d7ea4bcaea9ff28fc2 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Thu, 20 Jan 2011 15:32:04 +0000 Subject: [PATCH] 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. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1061346 13f79535-47bb-0310-9956-ffa450edef68 --- ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java b/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java index 17054fdbf..bdd03a252 100755 --- a/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java +++ b/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java @@ -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;