Added code to convert notification modes in the database to lowercase. Fixes issue 136.

This commit is contained in:
Tobi Schäfer 2011-01-15 22:17:31 +00:00
parent a5e6c8b596
commit bc98042790

View file

@ -60,3 +60,10 @@ sql.execute(template, "subscriber", "Subscriber");
sql.execute(template, 'contributor', 'Contributor');
sql.execute(template, 'manager', 'Manager');
sql.execute(template, 'owner', 'Owner');
// Convert notification modes to lowercase
root.forEach(function() {
if (this.notificationMode !== null) {
this.notificationMode = this.notificationMode.toLowerCase()
}
});