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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user