Changeset 209 for trunk


Ignore:
Timestamp:
Dec 2, 2009, 1:50:49 AM (15 years ago)
Author:
gav
Message:

Upgrade filterpane plugin to 0.6.4 from 0.6.2 and switch to FilterUtils?.isFilterApplied(params) for testing if filter is applied in task search.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/application.properties

    r199 r209  
    11#utf-8
    2 #Tue Nov 24 20:57:54 EST 2009
     2#Tue Dec 01 18:40:54 EST 2009
    33plugins.export=0.4
    44plugins.acegi=0.5.1
     
    1313app.name=gnuMims
    1414app.grails.version=1.1.1
    15 plugins.filterpane=0.6.2
     15plugins.filterpane=0.6.4
  • trunk/grails-app/controllers/TaskDetailedController.groovy

    r208 r209  
    11import org.codehaus.groovy.grails.plugins.springsecurity.Secured
    22import org.codehaus.groovy.grails.commons.ConfigurationHolder
     3import com.zeddware.grails.plugins.filterpane.FilterUtils
    34
    45class TaskDetailedController extends BaseController {
     
    2122
    2223    def search = {
    23 //         println params
    2424        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100 )
    2525
    2626        // Quick Search:
    27         if(!params.filter)
    28         {
     27        if(!FilterUtils.isFilterApplied(params)) {
    2928            def taskInstanceList = []
    3029            def personInstance = personService.currentUser()
     
    6261
    6362    def searchCalendar = {
    64 //         println params
    6563        params.max = 30
    6664
    6765        // Quick Search:
    68         if(!params.filter)
    69         {
     66        if(!FilterUtils.isFilterApplied(params)) {
    7067            def taskInstanceList = []
    7168            def personInstance = personService.currentUser()
     
    109106
    110107    def budget = {
    111 //         println params
    112108        params.max = Math.min( params.max ? params.max.toInteger() : 10,  100 )
    113109
    114110        // Quick Search:
    115         if(!params.filter)
    116         {
     111        if(!FilterUtils.isFilterApplied(params)) {
    117112            def taskInstanceList = []
    118113            def personInstance = personService.currentUser()
Note: See TracChangeset for help on using the changeset viewer.