Ticket #518 (closed defect: fixed)

Opened 2 years ago

Last modified 2 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:
Product: Operating system:
URL: Hardware:

Description

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

Change History

Changed 2 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

Changed 2 years ago by work@…

And r2122

Note: See TracTickets for help on using tickets.