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
master
jensp 2014-07-25 08:35:46 +00:00
parent 4710d07c4e
commit 493f9f64b0
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -200,7 +200,7 @@
<a class="memberName">
<xsl:attribute name="href">
<xsl:value-of select="normalize-space(./contacts/contact[@contactType='commonContact']/contactentries[keyId='homepage']/value)"/>
</xsl:attribute>
</xsl:attribute>
<xsl:if test="(./@role = 'head') and ($setHeadPreText = 'true') and ((string-length(./@status) = 0) or (./@status != 'former'))">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'SciProject'"/>