- Timestamp:
- Nov 2, 2009, 3:25:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/MaintenanceActionDetailedController.groovy
r133 r178 67 67 } 68 68 maintenanceActionInstance.properties = params 69 if(!maintenanceActionInstance.hasErrors() && maintenanceActionInstance.save( )) {69 if(!maintenanceActionInstance.hasErrors() && maintenanceActionInstance.save(flush: true)) { 70 70 flash.message = "MaintenanceAction ${params.id} updated" 71 71 redirect(action:show,id:maintenanceActionInstance.id) … … 89 89 def save = { 90 90 def maintenanceActionInstance = new MaintenanceAction(params) 91 if(!maintenanceActionInstance.hasErrors() && maintenanceActionInstance.save( )) {91 if(!maintenanceActionInstance.hasErrors() && maintenanceActionInstance.save(flush: true)) { 92 92 flash.message = "MaintenanceAction ${maintenanceActionInstance.id} created" 93 93 redirect(action:show,id:maintenanceActionInstance.id)
Note: See TracChangeset
for help on using the changeset viewer.