From a237b3ad2cd77539a6c7650b98c9a3dd063cafe0 Mon Sep 17 00:00:00 2001 From: juanf <juanf> Date: Mon, 26 Sep 2016 14:25:10 +0000 Subject: [PATCH] SSDM-4150 : Fix regression on creating inventory space/projects/experiments SVN: 37117 --- .../eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py index b09f175f945..df5aeb79be6 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/dss/reporting-plugins/eln-lims-api/script.py @@ -354,6 +354,7 @@ def insertExperimentIfMissing(tr, experimentIdentifier, experimentType, experime def init(tr, parameters, tableBuilder): projectsCache = {}; + installedTypes = getSampleTypes(tr, parameters); inventorySpace = tr.getSpace("DEFAULT_LAB_NOTEBOOK"); methodsSpace = tr.getSpace("METHODS"); materialsSpace = tr.getSpace("MATERIALS"); @@ -384,7 +385,6 @@ def init(tr, parameters, tableBuilder): # On new installations check if the default types are installed to create their respective PROJECT/EXPERIMENTS if isNewInstallation: - installedTypes = getSampleTypes(tr, parameters); if isSampleTypeAvailable(installedTypes, "ANTIBODY"): insertProjectIfMissing(tr, "/MATERIALS/REAGENTS", projectsCache); insertExperimentIfMissing(tr, "/MATERIALS/REAGENTS/ANTIBODY_COLLECTION_1", "MATERIALS", "Antibody Collection 1"); -- GitLab