Fixed draft export for Google base.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@562879 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -276,6 +276,7 @@ public class ProductsExportToGoogle {
|
||||
feedElem.setAttribute("xmlns:openSearch", "http://a9.com/-/spec/opensearchrss/1.0/");
|
||||
feedElem.setAttribute("xmlns:g", "http://base.google.com/ns/1.0");
|
||||
feedElem.setAttribute("xmlns:batch", "http://schemas.google.com/gdata/batch");
|
||||
feedElem.setAttribute("xmlns:app", "http://purl.org/atom/app#");
|
||||
|
||||
// Iterate the product list getting all the relevant data
|
||||
Iterator productsListItr = productsList.iterator();
|
||||
@@ -323,7 +324,6 @@ public class ProductsExportToGoogle {
|
||||
// status is draft or deactivate
|
||||
if (statusId != null && ("draft".equals(statusId) || "deactivate".equals(statusId))) {
|
||||
Element appControlElem = UtilXml.addChildElement(entryElem, "app:control", feedDocument);
|
||||
appControlElem.setAttribute("xmlns:app", "http://purl.org/atom/app#");
|
||||
UtilXml.addChildElementValue(appControlElem, "app:draft", "yes", feedDocument);
|
||||
|
||||
// status is deactivate
|
||||
|
||||
@@ -32,7 +32,7 @@ under the License.
|
||||
</drop-down>
|
||||
</field>
|
||||
<field name="statusId">
|
||||
<drop-down no-current-selected-key="publish">
|
||||
<drop-down no-current-selected-key="draft">
|
||||
<!--
|
||||
<option key="deactivate" description="${uiLabelMap.ProductExportDeactivated}"/>
|
||||
-->
|
||||
|
||||
Reference in New Issue
Block a user