Ignore:
Timestamp:
Jan 29, 2010, 7:38:15 PM (10 years ago)
Author:
jahn
Message:

Currently Sample extends Event. The Sample class might better be merged into the Event class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/dbnp/studycapturing/EventController.groovy

    r150 r153  
    200200    }
    201201
    202     def showMySample = {
    203           render( view:"showMySample" )
     202
     203    def showSample = {
     204          def event = Event.get(params.id)
     205          if( event instanceof SamplingEvent ) { render( view:"showSample", model:[samples:event.samples] )    }
     206          else                                 { render( view:"showNewSample" ) }
    204207    }
    205208
Note: See TracChangeset for help on using the changeset viewer.