Ignore:
Timestamp:
Jan 26, 2011, 3:29:08 AM (14 years ago)
Author:
gav
Message:

Domain change, adjust TaskProcedure to Task relationship.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/taskProcedureRework/grails-app/services/CreateDataService.groovy

    r751 r758  
    10971097        //TaskProcedure
    10981098        def taskProcedureInstance
    1099 
    1100         taskProcedureInstance = new TaskProcedure(name: "Daily check")
     1099        def taskInstance
     1100
     1101        taskInstance = Task.get(5)
     1102        taskProcedureInstance = new TaskProcedure(parentTask: taskInstance)
    11011103        saveAndTest(taskProcedureInstance)
    1102         taskProcedureInstance.addToTasks(Task.list()[0])
    1103 
    1104         taskProcedureInstance = new TaskProcedure(name: "100hr Service")
     1104        taskProcedureInstance.addToTasks(taskInstance)
     1105
     1106        taskInstance = Task.get(7)
     1107        taskProcedureInstance = new TaskProcedure(parentTask: taskInstance)
    11051108        saveAndTest(taskProcedureInstance)
    1106         taskProcedureInstance.addToTasks(Task.list()[6])
     1109        taskProcedureInstance.addToTasks(taskInstance)
    11071110    }
    11081111
Note: See TracChangeset for help on using the changeset viewer.