- Timestamp:
- Apr 26, 2010, 2:31:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/PersonRoleController.groovy
r361 r379 24 24 if (personRoleInstance.save(flush: true)) { 25 25 flash.message = "${message(code: 'default.created.message', args: [message(code: 'personRole.label', default: 'Role'), personRoleInstance.name])}" 26 redirect(action: "show", id: personRoleInstance.id) 26 //redirect(action: "show", id: personRoleInstance.id) 27 redirect(action: "list") 27 28 } 28 29 else { … … 68 69 if (!personRoleInstance.hasErrors() && personRoleInstance.save(flush: true)) { 69 70 flash.message = "${message(code: 'default.updated.message', args: [message(code: 'personRole.label', default: 'Role'), personRoleInstance.name])}" 70 redirect(action: "show", id: personRoleInstance.id) 71 //redirect(action: "show", id: personRoleInstance.id) 72 redirect(action: "list") 73 71 74 } 72 75 else { … … 92 95 catch (org.springframework.dao.DataIntegrityViolationException e) { 93 96 flash.message = "${message(code: 'default.not.deleted.message', args: [message(code: 'personRole.label', default: 'Role'), roleName])}" 94 redirect(action: "show", id: params.id) 97 // redirect(action: "show", id: params.id) 98 redirect(action: "list") 95 99 } 96 100 }
Note: See TracChangeset
for help on using the changeset viewer.