Ignore:
Timestamp:
Dec 4, 2009, 1:13:08 AM (14 years ago)
Author:
gav
Message:

Clicking on a searchCalendar day allows user to create a task with that day preset as targetStartDate.

File:
1 edited

Legend:

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

    r209 r214  
    1010    def filterService
    1111    def exportService
     12    def dateUtilService
    1213
    1314    // these actions only accept POST requests
     
    409410    def create = {
    410411        def taskInstance = new Task()
     412
     413        // Set the targetStartDate if specified, used by searchCalendar view.
     414        if(params.year && params.month && params.day)
     415            taskInstance.targetStartDate = dateUtilService.makeDate(params.year, params.month, params.day)
     416
    411417        // Default leadPerson to current user, unless supplied in params.
    412418        taskInstance.leadPerson = personService.currentUser()
Note: See TracChangeset for help on using the changeset viewer.