Changeset 250 for trunk


Ignore:
Timestamp:
Dec 27, 2009, 10:16:25 PM (15 years ago)
Author:
gav
Message:

Small fix for some Person list view bugs.

Location:
trunk/grails-app
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/PersonController.groovy

    r178 r250  
    1717        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100 )
    1818
    19         if(!params.filter)
    20         { return [personList: Person.list(params), personTotal: Person.count()] }
     19        if(!params.filter) {
     20            return [personList: Person.list(params),
     21                            personTotal: Person.count(),
     22                            filterParams: params]
     23        }
    2124
    2225        // filterPane:
  • trunk/grails-app/views/person/list.gsp

    r221 r250  
    3838                    <g:sortableColumn property="firstName" title="First Name" params="${filterParams}" />
    3939                    <g:sortableColumn property="lastName" title="Last Name" params="${filterParams}" />
    40                     <g:sortableColumn property="isActive " title="Active" params="${filterParams}" />
     40                    <g:sortableColumn property="isActive" title="Active" params="${filterParams}" />
    4141                    <th></th>
    4242                </tr>
Note: See TracChangeset for help on using the changeset viewer.