Changeset 1800 for trunk/grails-app
- Timestamp:
- May 2, 2011, 5:03:36 PM (10 years ago)
- Location:
- trunk/grails-app
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/query/AdvancedQueryController.groovy
r1799 r1800 265 265 */ 266 266 protected def getSearchableFields() { 267 def fields = [ :];267 def fields = [ '*' : [ '*' ] ]; // Searches for all fields in all objects 268 268 269 269 // Retrieve all local search fields … … 308 308 } 309 309 } 310 310 311 311 return fields; 312 312 } … … 332 332 ArrayList list = []; 333 333 flash.error = ""; 334 334 335 // Loop through all keys of c and remove the non-numeric ones 335 336 for( c in formCriteria ) { -
trunk/grails-app/views/advancedQuery/index.gsp
r1780 r1800 18 18 entity.key.toString() + '.' + field.toString() + ' ' + 19 19 entity.key.toString() + ' ' + field.toString() + ' ' + 20 (field == '*' ? 'any field' : '') 20 (field == '*' ? 'any field' : '') + ' ' + 21 (field == '*' && entity.key == '*' ? 'any field in any object' : '') 21 22 ).encodeAsJavaScript()}", 22 23 show: "${ 23 24 (field == '*' ? 24 '[Any field in ' + entity.key.toString() + ']':25 ( entity.key == '*' ? '[Any field in any object]' : '[Any field in ' + entity.key.toString() + ']' ) : 25 26 (field?.size() > 1 ? 26 27 field[0].toUpperCase() + field[1..-1] :
Note: See TracChangeset
for help on using the changeset viewer.