Changeset 2068


Ignore:
Timestamp:
Oct 18, 2011, 11:16:45 AM (5 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.

File:
1 edited

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                }
Note: See TracChangeset for help on using the changeset viewer.