Small fix - This was blocking Ebay request with empty description.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@810981 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -229,7 +229,7 @@ public class ProductsExportToEbay {
|
||||
|
||||
ProductContentWrapper pcw = new ProductContentWrapper(dctx.getDispatcher(), prod, locale, "text/html");
|
||||
StringUtil.StringWrapper ebayDescription = pcw.get("EBAY_DESCRIPTION");
|
||||
if (UtilValidate.isNotEmpty(ebayDescription)) {
|
||||
if (UtilValidate.isNotEmpty(ebayDescription.toString())) {
|
||||
UtilXml.addChildElementCDATAValue(itemElem, "Description", ebayDescription.toString(), itemDocument);
|
||||
} else {
|
||||
UtilXml.addChildElementValue(itemElem, "Description", encoder.encode(prod.getString("productName")), itemDocument);
|
||||
|
||||
Reference in New Issue
Block a user