Index: trunk/grails-app/controllers/TaskDetailedController.groovy
===================================================================
--- trunk/grails-app/controllers/TaskDetailedController.groovy	(revision 515)
+++ trunk/grails-app/controllers/TaskDetailedController.groovy	(revision 516)
@@ -90,4 +90,10 @@
             if(params.sort == "attentionFlag") // See ticket #64 in Trac.
                 params.sort = "id"
+            // Prevent tasks in the trash being returned unless explicitly requested.
+            if(!params.filter.op.trash) {
+                params.filter.op.trash = "Equal"
+                params.filter.trash = "false"
+            }
+            // Call filterService.
             taskInstanceList = filterService.filter( params, Task )
             taskInstanceTotal = filterService.count( params, Task )
@@ -198,4 +204,12 @@
         if(isFilterApplied) {
             // filterPane:
+            if(params.sort == "attentionFlag") // See ticket #64 in Trac.
+                params.sort = "id"
+            // Prevent tasks in the trash being returned unless explicitly requested.
+            if(!params.filter.op.trash) {
+                params.filter.op.trash = "Equal"
+                params.filter.trash = "false"
+            }
+            // Call filterService.
             taskInstanceList = filterService.filter( params, Task )
             taskInstanceTotal = filterService.count( params, Task )
