Skip to content
Snippets Groups Projects
Commit 21803a44 authored by juanf's avatar juanf
Browse files

SSDM-12892: Use default settings instead showing an error

parent e078ad60
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
......@@ -44,10 +44,11 @@ var SettingsManagerUtils = new function() {
}
var initialGroupSettings = spaceSettings && Object.keys(spaceSettings).length == 2 && spaceSettings["inventorySpaces"] && spaceSettings["inventorySpacesReadOnly"];
if(!spaceSettingsProperty || initialGroupSettings) { // Provide default empty settings when settings are missing
alert("Settings for group " + this.getSpaceGroupPrefix(spaceCode) + " missing, please edit and save your settings, until then empty settings will be used.");
spaceSettings = {
sampleTypeDefinitionsExtension : []
};
// alert("Settings for group " + this.getSpaceGroupPrefix(spaceCode) + " missing, please edit and save your settings, until then empty settings will be used.");
// spaceSettings = {
// sampleTypeDefinitionsExtension : []
// };
spaceSettings = this._defaultProfile;
}
var objectTypeCodes = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment