From 2ee0c60f4163d4686fcf0303ceb08039c365113a Mon Sep 17 00:00:00 2001 From: felmer <franz-josef.elmer@id.ethz.ch> Date: Mon, 27 May 2019 13:11:45 +0200 Subject: [PATCH] SSDM-8241: wrong bug fix has been committed, removed --- .../eln-lims/html/js/views/SettingsForm/SettingsFormView.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SettingsForm/SettingsFormView.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SettingsForm/SettingsFormView.js index 70b340083c7..cdde7b55b09 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SettingsForm/SettingsFormView.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/views/SettingsForm/SettingsFormView.js @@ -273,7 +273,7 @@ function SettingsFormView(settingsFormController, settingsFormModel) { var spacesOptions = this._settingsFormController.getInventorySpacesOptions(); spacesOptions = JSON.parse(JSON.stringify(spacesOptions)); - var initialValues = this._profileToEdit.inventorySpaces.filter(space => space); + var initialValues = this._profileToEdit.inventorySpaces.filter(space => space != null); for(var i = 0; i < initialValues.length; i++) { if($.inArray(initialValues[i], spacesOptions) === -1) { @@ -753,9 +753,7 @@ function SettingsFormView(settingsFormController, settingsFormModel) { for (var column of tableModel.columns) { var $widget = row[column.label]; var value = this._getWidgetValue($widget); - if (value) { - rowValues[column.label] = value; - } + rowValues[column.label] = value; } if (tableModel.rowExtraModels.length === tableModel.rows.length) { rowValues.extraValues = tableModel.rowExtraModels[i].getValues(); -- GitLab