Changeset 213 for trunk/grails-app/controllers
- Timestamp:
- Dec 3, 2009, 11:44:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/TaskRecurringScheduleDetailedController.groovy
r208 r213 77 77 def create = { 78 78 if(!params.task?.id || !Task.exists(params.task?.id)) { 79 flash.message = "Please select a task, then Create a Recurring Schedule for it."79 flash.message = "Please select a task, then create a recurring schedule for it." 80 80 redirect(controller:"taskDetailed", action:"search") 81 81 return 82 82 } 83 def taskRecurringScheduleInstance = new TaskRecurringSchedule() 84 taskRecurringScheduleInstance.properties = params 83 def taskRecurringScheduleInstance = new TaskRecurringSchedule(params) 85 84 return [taskRecurringScheduleInstance: taskRecurringScheduleInstance] 86 } // end create()85 } 87 86 88 87 def save = { … … 96 95 render(view:'create',model:[taskRecurringScheduleInstance: result.taskRecurringScheduleInstance]) 97 96 } 98 } // end save()97 } 99 98 100 99 }
Note: See TracChangeset
for help on using the changeset viewer.