Changeset 309
- Timestamp:
- Mar 24, 2010, 11:52:14 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/studycapturing/EventDescriptionController.groovy
r290 r309 286 286 def show = { 287 287 288 def eventDescriptionInstance = EventDescription.get(params .id)288 def eventDescriptionInstance = EventDescription.get(params['id']) 289 289 if (!eventDescriptionInstance) { 290 290 flash.message = "${message(code: 'default.not.found.message', args: [message(code: 'eventDescription.label', default: 'EventDescription'), params.id])}" … … 295 295 [eventDescriptionInstance: eventDescriptionInstance, params:params] 296 296 // Since show.gsp is not implemented yet, redirect to edit 297 redirect(action:'edit',id:params.id) 298 } 299 } 297 return [eventDescriptionInstance: eventDescriptionInstance] 298 } 299 } 300 300 301 301 302 … … 314 315 315 316 def showMyProtocol = { 316 317 317 if( EventDescription.get(params.id)==null || EventDescription.get(params.id).protocol==null ) { 318 318 def description=new EventDescription(); … … 320 320 } 321 321 else { 322 def isEditable = params['editable'] 322 323 def description = EventDescription.get(params.id) 323 render( view: "showMyProtocolFilled", model:[protocol:description.protocol,description:description ] )324 render( view: "showMyProtocolFilled", model:[protocol:description.protocol,description:description,editable:isEditable] ) 324 325 } 325 326 }
Note: See TracChangeset
for help on using the changeset viewer.