Ignore:
Timestamp:
Jun 10, 2010, 12:10:27 PM (14 years ago)
Author:
gav
Message:

Domain change, added safetyRequirement, mandatoryRegulatory and positiveFault attributes to Task.
Update views and logic to suite.
Complete's ticket #70.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/TaskService.groovy

    r567 r592  
    171171    * The taskProcedure is only assigned to the sub task if supplied in params.
    172172    * The assignedPersons and assignedGroups are only added to the sub task if supplied in params.
     173    * The positiveFault property is never set on the subTask.
    173174    * Collections in params must be supplied as new ArrayList's.
    174175    * This method is not intended to be a copyTask method.
     
    182183        def result = [:]
    183184
    184         //Make our new Task a subTask and set the required properites.
     185        //Make our new Task a subTask and set the required properties.
    185186        def p = [:]
    186187        p.parentTask = parentTask
     
    189190        p.targetStartDate = params.targetStartDate ?: dateUtilService.today
    190191        p.targetCompletionDate = params.targetCompletionDate ?: dateUtilService.today
     192
     193        p.safetyRequirement = params.safetyRequirement ?: parentTask.safetyRequirement
     194        p.mandatoryRegulatory = params.mandatoryRegulatory ?: parentTask.mandatoryRegulatory
    191195
    192196        p.taskGroup = params.taskGroup ?: parentTask.taskGroup
Note: See TracChangeset for help on using the changeset viewer.