Hi all,
I'm using Alfresco 4.2f and I can't add a resource using the UIContentSelector in the StartWorkflowWizard page with every workflow. When I try to hit the search button the result box remains empty.
Solved! Go to Solution.
I have put the question here because I have already found the solution and I wanted to share it.
The problems is in the class org.alfresco.web.ui.repo.component.UIContentSelector that is building the query and in particular it is missing to escape double quotes around the search term, so the resultig query is like this:
... +@\{http\://www.alfresco.org/model/content/1.0\}name:"*SEARCH-TERM*"
So you have to modify the method getAvailableOptions and substitute this line (in my version is row 358):
query.append(":\"*" + safeContains + "*\"");
With this:
query.append(":\\\"*" + safeContains + "*\\\"");
I have put the question here because I have already found the solution and I wanted to share it.
The problems is in the class org.alfresco.web.ui.repo.component.UIContentSelector that is building the query and in particular it is missing to escape double quotes around the search term, so the resultig query is like this:
... +@\{http\://www.alfresco.org/model/content/1.0\}name:"*SEARCH-TERM*"
So you have to modify the method getAvailableOptions and substitute this line (in my version is row 358):
query.append(":\"*" + safeContains + "*\"");
With this:
query.append(":\\\"*" + safeContains + "*\\\"");
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.