Don't accidentally overwrite true values from config
This commit is contained in:
parent
af1d4e8dc8
commit
397dc139a5
1 changed files with 2 additions and 2 deletions
|
@ -398,10 +398,10 @@ angular.module("core-config-setup", ['angularFileUpload'])
|
|||
}
|
||||
}
|
||||
|
||||
// Set any boolean fields to false.
|
||||
// Set any missing boolean fields to false.
|
||||
for (var i = 0; i < allowedFields.length; ++i) {
|
||||
if (allowedFields[i].kind == 'bool') {
|
||||
configObject[allowedFields[i].name] = false;
|
||||
configObject[allowedFields[i].name] = configObject[allowedFields[i].name] || false;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Reference in a new issue