mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V2.2 to HEAD
8083: Merged V2.1 to V2.2 8066: RM-31 and related issues (ACT-729) 8068: Fix for AR-1997 8084: Fixed script error on notify page of invite website user wizard 8086: Merged V2.1 to V2.2 8075: Clear()ing a hibernate session, is not always enough to guarantee that transactions not use unbounded amounts of memory 8076: Turn off test that needs to be fixed real soon now. 8092: Implementation for: http://issues.alfresco.com/browse/AR-1744 8093: Fixed upgrade scripts for V2.1.2 to V2.2 upgrades 8096: Fix for AWC-1578 and AWC-1814 8097: Added new indexes missing from scripts and made index names consistent. 8098: Fix for AWC-1548 8100: Removed use of QName from alf_permission table 8102: Fix for AWC-1690 8103: test was == on id that used to be long but is now a Long git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8476 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -1391,7 +1391,13 @@ public class BrowseBean implements IContextListener, Serializable
|
||||
public void closeSearch(ActionEvent event)
|
||||
{
|
||||
// set the current node Id ready for page refresh
|
||||
this.navigator.setCurrentNodeId( this.navigator.getCurrentNodeId() );
|
||||
String currentNodeId = this.navigator.getCurrentNodeId();
|
||||
this.navigator.setCurrentNodeId(currentNodeId);
|
||||
|
||||
// setup dispatch context so we go back to the right place
|
||||
NodeRef currentNodeRef = new NodeRef(Repository.getStoreRef(), currentNodeId);
|
||||
Node currentNode = new Node(currentNodeRef);
|
||||
this.navigator.setupDispatchContext(currentNode);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -35,6 +35,7 @@ import javax.faces.context.ResponseWriter;
|
||||
import javax.faces.el.ValueBinding;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.search.impl.lucene.QueryParser;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.repository.NodeService;
|
||||
import org.alfresco.service.cmr.search.LimitBy;
|
||||
@@ -353,7 +354,7 @@ public class UIContentSelector extends UIInput
|
||||
|
||||
if (contains != null && contains.length() > 0)
|
||||
{
|
||||
String safeContains = Utils.remove(contains.trim(), "\"");
|
||||
String safeContains = QueryParser.escape(contains.trim());
|
||||
query.append(" AND +@");
|
||||
|
||||
String nameAttr = Repository.escapeQName(QName.createQName(
|
||||
|
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
package org.alfresco.web.ui.repo.component;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Calendar;
|
||||
import java.util.GregorianCalendar;
|
||||
@@ -369,7 +370,16 @@ public class UIMultiValueEditor extends UIInput
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void encodeChildren(FacesContext context) throws IOException
|
||||
{
|
||||
// if we need to hide the wrapped component don't encode the children
|
||||
if (this.getRendersChildren() == false)
|
||||
{
|
||||
super.encodeChildren(context);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @see javax.faces.component.UIComponent#getRendersChildren()
|
||||
*/
|
||||
|
@@ -44,6 +44,7 @@ import javax.faces.event.FacesEvent;
|
||||
import javax.transaction.UserTransaction;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.repo.search.impl.lucene.QueryParser;
|
||||
import org.alfresco.repo.security.authority.AuthorityDAO;
|
||||
import org.alfresco.service.cmr.dictionary.AssociationDefinition;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
@@ -991,22 +992,19 @@ public abstract class BaseAssociationEditor extends UIInput
|
||||
|
||||
if (contains != null && contains.length() > 0)
|
||||
{
|
||||
String safeContains = Utils.remove(contains.trim(), "\"");
|
||||
String safeContains = QueryParser.escape(contains.trim());
|
||||
|
||||
// if the association's target is the person type search on the
|
||||
// firstName and lastName properties instead of the name property
|
||||
if (type.equals(ContentModel.TYPE_PERSON.toString()))
|
||||
{
|
||||
query.append(" AND (@");
|
||||
String firstName = Repository.escapeQName(QName.createQName(
|
||||
NamespaceService.CONTENT_MODEL_1_0_URI, "firstName"));
|
||||
query.append(firstName);
|
||||
query.append(":*" + safeContains + "*");
|
||||
query.append(" OR @");
|
||||
String lastName = Repository.escapeQName(QName.createQName(
|
||||
NamespaceService.CONTENT_MODEL_1_0_URI, "lastName"));
|
||||
query.append(lastName);
|
||||
query.append(":*" + safeContains + "*)");
|
||||
{
|
||||
query.append(" AND (@").append(NamespaceService.CONTENT_MODEL_PREFIX).append("\\:firstName:\"*");
|
||||
query.append(safeContains);
|
||||
query.append("*\" @").append(NamespaceService.CONTENT_MODEL_PREFIX).append("\\:lastName:\"*");
|
||||
query.append(safeContains);
|
||||
query.append("*\" @").append(NamespaceService.CONTENT_MODEL_PREFIX).append("\\:userName:");
|
||||
query.append(safeContains);
|
||||
query.append("*)");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user