- Timestamp:
- Oct 27, 2009, 8:53:58 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskDetailedController.groovy
r165 r169 241 241 if(params._action_Edit) 242 242 { params.action='edit' } 243 243 244 244 def taskInstance = Task.get( params.id ) 245 245 … … 250 250 else { 251 251 def criteria = taskInstance.createCriteria() 252 def result = criteria {252 def possibleParentList = criteria { 253 253 and { 254 254 notEqual('id', taskInstance.id) 255 taskInstance.subTasks.each() { notEqual('id', it.id) } 255 256 } 256 257 } 257 return [ taskInstance : taskInstance, possibleParentList: result ]258 return [ taskInstance : taskInstance, possibleParentList: possibleParentList ] 258 259 } 259 260 }
Note: See TracChangeset
for help on using the changeset viewer.