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
This commit is contained in:
Kevin Roast
2009-06-18 14:43:53 +00:00
parent 7bc8553167
commit a73fec7da6

View File

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