Changeset 2068

Show
Ignore:
Timestamp:
18-10-11 11:16:45 (3 years ago)
Author:
taco@…
Message:

AdvancedQueryController?.groovy, small fix to prevent a bunch of error messages showing up when searching with the '[Any field in any object] *' field option. To render an empty list as JSON, one should use a variable.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/query/AdvancedQueryController.groovy

    r1969 r2068  
    291291                // Skip searching all fields 
    292292                if( entity == "*" || field == "*" ) { 
    293                         render [] as JSON 
     293                        def emptyList = [] 
     294                        render emptyList as JSON 
    294295                        return; 
    295296                }