From a73fec7da6e5e1a997b30fc888a051231b9dca0e Mon Sep 17 00:00:00 2001 From: Kevin Roast Date: Thu, 18 Jun 2009 14:43:53 +0000 Subject: [PATCH] Fix for ALFCOM-2678, ALFCOM-2678 and ETWOONE-443. - handling of illegal search terms by user association pickers git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14789 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261 --- .../ui/repo/component/property/BaseAssociationEditor.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/java/org/alfresco/web/ui/repo/component/property/BaseAssociationEditor.java b/source/java/org/alfresco/web/ui/repo/component/property/BaseAssociationEditor.java index 6c660810ad..f15074685d 100644 --- a/source/java/org/alfresco/web/ui/repo/component/property/BaseAssociationEditor.java +++ b/source/java/org/alfresco/web/ui/repo/component/property/BaseAssociationEditor.java @@ -1025,7 +1025,12 @@ public abstract class BaseAssociationEditor extends UIInput if (contains != null && contains.length() > 0) { - String safeContains = contains.trim(); + String safeContains = null; + if (contains != null && contains.length() > 0) + { + safeContains = Utils.remove(contains.trim(), "\""); + safeContains = safeContains.toLowerCase(); + } // if the association's target is the person type search on the // firstName and lastName properties instead of the name property