Ignore:
Timestamp:
Nov 19, 2009, 1:47:55 PM (14 years ago)
Author:
gav
Message:

Switch creatDemoEntries to use the taskService.createEntry service.
Switch some findByName's to get(id).

File:
1 edited

Legend:

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

    r185 r190  
    171171
    172172            def entryWorkDoneList = Entry.withCriteria {
    173                                                                 def entryType = EntryType.findByName("WorkDone")
    174                                                                 eq("entryType", entryType)
     173                                                                eq("entryType", EntryType.get(2))
    175174                                                                eq("task", taskInstance)
    176175                                                        }
    177176
    178177            def entryFaultList = Entry.withCriteria {
    179                                                                 def entryType = EntryType.findByName("Fault")
    180                                                                 eq("entryType", entryType)
     178                                                                eq("entryType", EntryType.get(1))
    181179                                                                eq("task", taskInstance)
    182180                                                        }
Note: See TracChangeset for help on using the changeset viewer.