diff --git a/sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js b/sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js index 44cc69f39e9..c5154fe7504 100644 --- a/sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js +++ b/sandbox/contributions/javascript/queryValidator/luceneQueryValidator.js @@ -83,11 +83,11 @@ function doCheckLuceneQueryValue(query) var i = query.indexOf(':'); if(i == -1) { - queryField.value = query.toLowerCase(); + query.value = query.toLowerCase(); } else // found a wildcard field search { - queryField.value = query.substring(0, i) + query.substring(i).toLowerCase(); + query.value = query.substring(0, i) + query.substring(i).toLowerCase(); } } }