middleware/_modelIndex.js
function (cb) {

                req.linz.model.list.activeFilters = {};

                // check if there are any filters in the form post
                if (!session.list.formData.selectedFilters) {
                    return cb(null);
                }

                formtoolsAPI.list.getActiveFilters(req, session.list.formData.selectedFilters.split(','), session.list.formData, req.params.model, function (err, result) {

                    if (err) {
                        return cb(err);
                    }

                    req.linz.model.list.activeFilters = result;

                    return cb(null);
                });

            }
function (cb) {

                req.linz.model.list.activeFilters = {};

                // check if there are any filters in the form post
                if (!session.list.formData.selectedFilters) {
                    return cb(null);
                }

                formtoolsAPI.list.getActiveFilters(req, session.list.formData.selectedFilters.split(','), session.list.formData, req.params.model, function (err, result) {

                    if (err) {
                        return cb(err);
                    }

                    req.linz.model.list.activeFilters = result;

                    return cb(null);
                });

            }
function ( cb ) { req . linz . model . list . activeFilters = { } ; // check if there are any filters in the form post if ( ! session . list . formData . selectedFilters ) { return cb ( null ) ; } formtoolsAPI . list . getActiveFilters ( req , session . list . formData . selectedFilters . split ( ',' ) , session . list . formData , req . params . model , function ( err , result ) { if ( err ) { return cb ( err ) ; } req . linz . model . list . activeFilters = result ; return cb ( null ) ; } ) ; }
render the active filters
render the active filters