Don't accidentally overwrite true values from config

This commit is contained in:
Joseph Schorr 2015-08-05 13:52:48 -04:00
parent af1d4e8dc8
commit 397dc139a5

View file

@ -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;
}
}
});