Merged V3.2E to HEAD

17355: Fix for ETHREEOH-2894 - TinyMCE html source edits are not persisted in some cases within forms
   17360: Fixed IE error when rendering site and container pickers
   17364: IE6 layout fix for DocLib toolbar and long filenames. Follow-up fix for r17360. Fix workflow pop-up.
   17370: Fixed ETHREEOH-2926 "There is no restriction that's why layout is broken."
      - new title limit is 256
      - also moved Configure link to the toolbar as for the ret of the dashlets
      - title words that are longer than the column are hidden (for all dashlets)
   17371: Fixed styling in all themes for sites & search menu that was changed a bit after the last focus/accessability changes
   17374: ETHREEOH-2513 - Null Pointer if log level is DEBUG
   17376: Fixed ETHREEOH-2920 "Spaces are not trimmed in the string entered into Search User/Group field"
   17379: Fixed ETHREEOH-1722 & ETHREEOH-1723 - subject & message must contain characters 
      - ETHREEOH-1722 "It is possible to send e-mail with Subject that consists of spaces"
      - ETHREEOH-1723 "It is possible to send e-mail with empty Message field"
   17382: Merged DEV-TEMPORARY to V3.2
      16735: ETHREEOH-1382: It's impossible to find files with short names on Staging Sandbox
             - User friendly message "Not enough information was entered to perform a search, at least one value must be entered or alocation selected to search within. Text fields require a minimum of 3 characters"

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18118 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2010-01-19 11:03:44 +00:00
parent 85e4c0dbf1
commit 8e594817c3
3 changed files with 98 additions and 81 deletions

View File

@@ -1225,10 +1225,6 @@ public class AVMBrowseBean implements IContextListener
String query = this.searchContext.buildQuery(getMinimumSearchLength());
if (query == null)
{
// failed to build a valid query, the user probably did not enter the
// minimum text required to construct a valid search
Utils.addErrorMessage(MessageFormat.format(Application.getMessage(FacesContext.getCurrentInstance(),
BrowseBean.MSG_SEARCH_MINIMUM), new Object[] {getMinimumSearchLength()}));
this.folders = Collections.<Map>emptyList();
this.files = Collections.<Map>emptyList();
return;
@@ -1987,6 +1983,14 @@ public class AVMBrowseBean implements IContextListener
this.searchContext = searchContext;
resetFileFolderLists();
if (searchContext.buildQuery(getMinimumSearchLength()) == null)
{
// failed to build a valid query, the user probably did not enter the
// minimum text required to construct a valid search
Utils.addErrorMessage(MessageFormat.format(Application.getMessage(FacesContext.getCurrentInstance(),
BrowseBean.MSG_SEARCH_MINIMUM), new Object[] {getMinimumSearchLength()}));
}
}
}