From dd37a275c4d3920838fb39760adf2756f224d9b3 Mon Sep 17 00:00:00 2001 From: jensp Date: Thu, 21 Mar 2013 20:25:47 +0000 Subject: [PATCH] Filtered object lists are now working with the export links. git-svn-id: https://svn.libreccm.org/ccm/trunk@2101 8810af33-2d31-482b-a856-94f89814c4df --- .../cms/scipublications/ui/PublicationExportLinks.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ccm-sci-publicationsexportlinks/src/com/arsdigita/cms/scipublications/ui/PublicationExportLinks.java b/ccm-sci-publicationsexportlinks/src/com/arsdigita/cms/scipublications/ui/PublicationExportLinks.java index 8a8922cfc..e59fcdb70 100644 --- a/ccm-sci-publicationsexportlinks/src/com/arsdigita/cms/scipublications/ui/PublicationExportLinks.java +++ b/ccm-sci-publicationsexportlinks/src/com/arsdigita/cms/scipublications/ui/PublicationExportLinks.java @@ -6,7 +6,11 @@ import com.arsdigita.cms.scipublications.imexporter.PublicationFormat; import com.arsdigita.navigation.ui.AbstractComponent; import com.arsdigita.navigation.ui.object.CustomizableObjectList; import com.arsdigita.xml.Element; +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; import java.util.List; +import java.util.logging.Level; +import java.util.logging.Logger; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -49,7 +53,11 @@ public class PublicationExportLinks extends AbstractComponent { final Element categoryIdElem = exportLinkElem.newChildElement("categoryId"); categoryIdElem.setText(category.getID().toString()); final Element filterSqlElem = exportLinkElem.newChildElement("filterSql"); - filterSqlElem.setText(objList.getFilterSql()); + try { + filterSqlElem.setText(URLEncoder.encode(objList.getFilterSql(), "UTF-8")); + } catch (UnsupportedEncodingException ex) { + filterSqlElem.setText(""); + } final Element desCatsElem = exportLinkElem.newChildElement("descendCategories"); if (objList.getDefinition().getDescendCategories()) { desCatsElem.setText("true");