diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/DataSetFormController.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/DataSetFormController.js index 7cfe5d7e6483feabe0286b49efa346dd097562a0..878c9c29615146e381b28ecb6320e0ed07d5a4c8 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/DataSetFormController.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/DataSetForm/DataSetFormController.js @@ -109,6 +109,8 @@ function DataSetFormController(parentController, mode, sample, dataSet, isMini) var method = null; var sampleIdentifier = this._dataSetFormModel.sample.identifier; + var space = sampleIdentifier.split("/")[1]; + var isInventory = profile.isInventorySpace(space); var dataSetTypeCode = null; var dataSetCode = null; if(this._dataSetFormModel.mode === FormMode.CREATE) { @@ -168,10 +170,15 @@ function DataSetFormController(parentController, mode, sample, dataSet, isMini) if(_this._dataSetFormModel.mode === FormMode.CREATE) { Util.showSuccess("DataSet Created.", callbackOk); - mainController.sideMenu.refreshCurrentNode(); + if(!isInventory) { + mainController.sideMenu.refreshCurrentNode(); + } + } else if(_this._dataSetFormModel.mode === FormMode.EDIT) { Util.showSuccess("DataSet Updated.", callbackOk); - mainController.sideMenu.refreshNodeParent(_this._dataSetFormModel.dataSet.code); + if(!isInventory) { + mainController.sideMenu.refreshNodeParent(_this._dataSetFormModel.dataSet.code); + } } } else { //This should never happen