diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js index 93a249d74d6902056773285df620888d03405be7..da14841aa4ecf0e44f6c4c88fc89635f4e9e0cae 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/util/FormUtil.js @@ -1041,6 +1041,8 @@ var FormUtil = new function() { var sectionSetting = sectionsSettings[option.label]; if (sectionSetting !== undefined) { shown = sectionSetting === 'shown'; + } else if (option.showByDefault) { + shown = true; } else { shown = ! profile.hideSectionsByDefault; } diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js index 6971e177f35525bc29782b9fedb58b5ba7adfce0..8dc28bc09362dce793ceaedeba834d19d4e45120 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SampleForm/SampleFormView.js @@ -905,7 +905,8 @@ function SampleFormView(sampleFormController, sampleFormModel) { hideShowOptionsModel.push({ forceToShow : this._sampleFormModel.mode === FormMode.CREATE && (sampleTypeDefinitionsExtension && sampleTypeDefinitionsExtension["FORCE_TO_SHOW_PARENTS_SECTION"]), label : "Parents", - section : "#sample-parents" + section : "#sample-parents", + showByDefault : true }); var requiredParents = []; @@ -941,7 +942,8 @@ function SampleFormView(sampleFormController, sampleFormModel) { this._createChildrenSection = function(hideShowOptionsModel, sampleTypeDefinitionsExtension, sampleTypeCode) { hideShowOptionsModel.push({ label : "Children", - section : "#sample-children" + section : "#sample-children", + showByDefault : true }); var _this = this;