Ticket #518 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

In the Events page not all template fields are shown

Reported by: work@… Owned by: work@…
Priority: critical Milestone: 0.8.4
Component: Unknown Version: 0.8.3
Keywords: Cc:
Hardware: Operating system:
Product: URL:


On studies.dbnp.org the 'Blood' samplingEvent template does not show all fields in the Events page.

Change History

comment:1 Changed 5 years ago by work@…

  • Status changed from new to closed
  • Resolution set to fixed

The study create wizard fetches Templates based on name, however two templates existed carrying the same name. One for entity Sample and one for entity SamplingEvent?. However, as 'Sample' was the first template entered in the system the study wizard fetched that template for the SamplingEvent? page and not the template is was supposed to instantiate (the second one). Fixed it by finding the proper one in the result set through:

def template = Template.findAllByName( params.get( 'template' ) ).find { it.entity == dbnp.studycapturing.SamplingEvent }

Also implemented the same fix for other findTemplate logic in the StudyWizard? to make sure the same issue is resolved throughout the study wizard (e.g. study, assay, event, sampling event, etc)

Resolved in r2121

comment:2 Changed 5 years ago by work@…

And r2122

Note: See TracTickets for help on using tickets.