Skip to content

Commit

Permalink
@garfield69 pointed me straight to a problem with the SqliteAdapter d…
Browse files Browse the repository at this point in the history
…efaultvalues rewrite. Fixes SchizoDuckie#345
  • Loading branch information
SchizoDuckie committed Jan 28, 2015
1 parent 76dfc44 commit b9d403e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/vendor/CRUD.SqliteAdapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ CRUD.SQLiteAdapter = function(database, dbOptions) {

// add defaults
Object.keys(CRUD.EntityManager.entities[what.className].defaultValues).map(function(field) {
if (!(field in what.changedValues)) {
if (!(field in what.changedValues) && !(field in what.values)) {
names.push(field);
values.push('?');
valmap.push(CRUD.EntityManager.entities[what.className].defaultValues[field]);
Expand Down

0 comments on commit b9d403e

Please sign in to comment.