Skip to content

Commit

Permalink
[GF#33070] Make "Contains" the default on all searches.
Browse files Browse the repository at this point in the history
  • Loading branch information
kimong committed Mar 27, 2014
1 parent 8ab5ea5 commit e3273c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,9 @@ public String advancedSearchAction() {

String searchTarget = HTTPUtils.cleanXSS((String) request.getParameter("searchTarget"));

String matchText = HTTPUtils.cleanXSS((String) request.getParameter("matchText"));
//String matchText = HTTPUtils.cleanXSS((String) request.getParameter("matchText"));
String matchText = HTTPUtils.cleanXSS((String) request.getParameter("adv_matchText"));

if (matchText == null || matchText.length() == 0) {
String message = "Please enter a search string.";
// request.getSession().setAttribute("message", message);
Expand Down
2 changes: 1 addition & 1 deletion software/ncimbrowser/web/pages/advanced_search.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@

<table>
<tr><td>
<input CLASS="searchbox-input" id="matchText" name="matchText" value="<%=HTTPUtils.cleanXSS(search_string)%>" onFocus="active=true"
<input CLASS="searchbox-input" id="matchText" name="adv_matchText" value="<%=HTTPUtils.cleanXSS(search_string)%>" onFocus="active=true"
onBlur="active=false" onkeypress="return submitEnter('advancedSearchForm:adv_search',event)" />

<h:commandButton id="adv_search" value="Search" action="#{userSessionBean.advancedSearchAction}"
Expand Down

0 comments on commit e3273c7

Please sign in to comment.