middleware/_modelIndex.js
function (cb) {

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

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

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

                    filters = result;

                    return cb(null);

                });

            }
function (cb) {

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

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

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

                    filters = result;

                    return cb(null);

                });

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