Ignore:
Timestamp:
Apr 13, 2010, 1:11:10 PM (15 years ago)
Author:
gav
Message:

Default scheduled to true when creating a new Scheduled task.
Add applicable sorting and findAllByIsActive(true) to select lists in task views.

File:
1 edited

Legend:

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

    r486 r487  
    598598        // Default leadPerson to current user, unless supplied in params.
    599599        taskInstance.leadPerson = authService.currentUser
     600
     601        // Apply params, overiding anything above.
    600602        taskInstance.properties = params
    601603
    602604        def scheduledTaskTypes = taskService.scheduledTaskTypes
    603605        def scheduledTaskPriorities = taskService.scheduledTaskPriorities
     606        taskInstance.scheduled = true
    604607        taskInstance.taskPriority = scheduledTaskPriorities.default
    605608        return ['taskInstance': taskInstance,
Note: See TracChangeset for help on using the changeset viewer.