Ignore:
Timestamp:
Sep 1, 2009, 10:10:43 PM (15 years ago)
Author:
gav
Message:

Update to grails-1.1.1 release.
Fix WorkDone? and Fault entries not showing after update, now using criteria.
Work on TaskRecurringSchedule, add DateUtilService class, regenerate views to suite.
Finally have correct rollback behaviour on TaskRecurringSchedule? domain object updates by using transactions.
Added name to copyright since the license has no meaning without it.

File:
1 edited

Legend:

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

    r134 r137  
    3131                        params.order = "desc"
    3232                        params.sort = "id"
     33                       
     34                        def entryWorkDoneList = Entry.withCriteria {
     35                                                                                                                                def entryType = EntryType.findByName("WorkDone")
     36                                                                                                                                eq("entryType", entryType)
     37                                                                                                                                eq("task", taskInstance)
     38                                                                                                                }
     39                       
     40                        def entryFaultList = Entry.withCriteria {
     41                                                                                                                                def entryType = EntryType.findByName("Fault")
     42                                                                                                                                eq("entryType", entryType)
     43                                                                                                                                eq("task", taskInstance)
     44                                                                                                                }
    3345
    3446                        def subTaskInstanceList = Task.findAllByParentTask(taskInstance, params)
     
    5365            }
    5466                       
    55             return [ taskInstance : taskInstance,
     67            return [ taskInstance: taskInstance,
     68                                                        entryWorkDoneList: entryWorkDoneList,
     69                                                        entryFaultList: entryFaultList,
    5670                            taskProcedureInstance: taskProcedureInstance,
    5771                            taskProcedureExits: taskProcedureExits,
Note: See TracChangeset for help on using the changeset viewer.