Changeset 385

Show
Ignore:
Timestamp:
27-04-10 10:25:43 (4 years ago)
Author:
duh
Message:

- template editor view used Study as entity instead of the dynamically passed entity

Location:
trunk/grails-app
Files:
2 modified

Legend:

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

    r377 r385  
    7777                                                        // fetch all templates to this entity 
    7878                                                        flow.templates = Template.findAllByEntity(entity) 
    79  
     79                                                         
    8080                                                        // find all template fields for this particular entity 
    8181                                                        // for now, all 
  • trunk/grails-app/views/templateEditor/pages/templates.gsp

    r377 r385  
    3232 
    3333 <g:form action="pages" name="wizardForm" id="wizardForm"> 
    34   <wizard:templateSelect name="template" description="Template" value="${template}" entity="${dbnp.studycapturing.Study}" addDummy="true" onChange="this.form.submit();" /> 
     34  <wizard:templateSelect name="template" description="Template" value="${template}" entity="${entity}" addDummy="true" onChange="this.form.submit();" /> 
    3535 </g:form> 
    3636