From 493f9f64b0173113d25f33ae588e0392d7f344fd Mon Sep 17 00:00:00 2001 From: jensp Date: Fri, 25 Jul 2014 08:35:46 +0000 Subject: [PATCH] Fixed bug in the filters for object lists (error when search term contains an apostroph) git-svn-id: https://svn.libreccm.org/ccm/trunk@2780 8810af33-2d31-482b-a856-94f89814c4df --- .../src/com/arsdigita/navigation/ui/object/TextFilter.java | 2 ++ .../user/includes/types/SciProject/SciProjectSummaryTab.xsl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ccm-navigation/src/com/arsdigita/navigation/ui/object/TextFilter.java b/ccm-navigation/src/com/arsdigita/navigation/ui/object/TextFilter.java index cea954e56..22197d371 100644 --- a/ccm-navigation/src/com/arsdigita/navigation/ui/object/TextFilter.java +++ b/ccm-navigation/src/com/arsdigita/navigation/ui/object/TextFilter.java @@ -34,6 +34,8 @@ public class TextFilter implements Filter { @Override public void setValue(final String value) { this.value = value; + this.value = this.value.replace('\'', '%'); + this.value = this.value.replace('\"', '%'); } @Override diff --git a/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciProject/SciProjectSummaryTab.xsl b/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciProject/SciProjectSummaryTab.xsl index ea11c56c7..6798f979c 100644 --- a/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciProject/SciProjectSummaryTab.xsl +++ b/ccm-sci-bundle/web/themes/mandalay/user/includes/types/SciProject/SciProjectSummaryTab.xsl @@ -200,7 +200,7 @@ - +