Changeset 2138


Ignore:
Timestamp:
Dec 22, 2011, 4:09:00 PM (11 years ago)
Author:
robert@…
Message:

Fixed a bug in showing null values in charts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/visualization/VisualizeController.groovy

    r2137 r2138  
    584584         */
    585585        def aggregateData( data, fieldInfo, aggregation ) {
     586                // Filter out null values
     587                data = filterNullValues( data )
     588               
    586589                // If no aggregation is requested, we just return the original object (but filtering out null values)
    587590                if( aggregation == "none" ) {
    588                         return sortNonAggregatedData( filterNullValues( data ), [ 'x', 'group' ] );
     591                        return sortNonAggregatedData( data, [ 'x', 'group' ] );
    589592                }
    590593               
Note: See TracChangeset for help on using the changeset viewer.