Skip to content

Commit

Permalink
fixed a bug in zero-values saving.
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierlacot committed Nov 15, 2010
1 parent fbb623a commit 0e0f25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joli.js
Expand Up @@ -273,7 +273,7 @@ joli.model.prototype = {
var data = {};

joli.each(this.options.columns, function(colType, colName) {
data[colName] = values[colName] || null;
data[colName] = (values[colName] === undefined) ? null : values[colName];
});

var record = new joli.record(this).fromArray(data);
Expand Down

0 comments on commit 0e0f25b

Please sign in to comment.