Changeset 516


Ignore:
Timestamp:
May 1, 2010, 2:20:33 AM (15 years ago)
Author:
gav
Message:

Prevent tasks in the trash being returned by filterPane unless explicitly requested.

File:
1 edited

Legend:

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

    r513 r516  
    9090            if(params.sort == "attentionFlag") // See ticket #64 in Trac.
    9191                params.sort = "id"
     92            // Prevent tasks in the trash being returned unless explicitly requested.
     93            if(!params.filter.op.trash) {
     94                params.filter.op.trash = "Equal"
     95                params.filter.trash = "false"
     96            }
     97            // Call filterService.
    9298            taskInstanceList = filterService.filter( params, Task )
    9399            taskInstanceTotal = filterService.count( params, Task )
     
    198204        if(isFilterApplied) {
    199205            // filterPane:
     206            if(params.sort == "attentionFlag") // See ticket #64 in Trac.
     207                params.sort = "id"
     208            // Prevent tasks in the trash being returned unless explicitly requested.
     209            if(!params.filter.op.trash) {
     210                params.filter.op.trash = "Equal"
     211                params.filter.trash = "false"
     212            }
     213            // Call filterService.
    200214            taskInstanceList = filterService.filter( params, Task )
    201215            taskInstanceTotal = filterService.count( params, Task )
Note: See TracChangeset for help on using the changeset viewer.