From 2c75c504d5b42006e8832ccb10f96b06888cd012 Mon Sep 17 00:00:00 2001 From: "Fuentes Serna Juan Mariano (ID SIS)" <juanf@bs-mbpr28.d.ethz.ch> Date: Mon, 7 Jan 2019 13:00:16 +0100 Subject: [PATCH] SSDM-6975 : fixes from feedback, storage names dropdown --- .../1/as/webapps/eln-lims/html/js/config/Profile.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js index 53fb5118d6c..779736c0c05 100644 --- a/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js +++ b/openbis_standard_technologies/dist/core-plugins/eln-lims/1/as/webapps/eln-lims/html/js/config/Profile.js @@ -526,9 +526,13 @@ $.extend(DefaultProfile.prototype, { // !!! IMPORTANT // This properties start with $, they are here without it because the V1 API omits the $. // + var propertyReplacingCodeNoDolar = profile.propertyReplacingCode; + if(propertyReplacingCodeNoDolar.charAt(0) === "$") { + propertyReplacingCodeNoDolar = propertyReplacingCodeNoDolar.substring(1); + } return { code : sample.code, - label : sample.properties[profile.propertyReplacingCode], + label : sample.properties[propertyReplacingCodeNoDolar], validationLevel : ValidationLevel[sample.properties["STORAGE.STORAGE_VALIDATION_LEVEL"]], lowRackSpaceWarning : sample.properties["STORAGE.STORAGE_SPACE_WARNING"], lowBoxSpaceWarning : sample.properties["STORAGE.BOX_SPACE_WARNING"], -- GitLab