Navigation Menu

Skip to content

Commit

Permalink
Convert column name to field name correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Aug 9, 2012
1 parent acacb68 commit 61fedc0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/database/domain.js
Expand Up @@ -169,11 +169,7 @@ Domain.prototype = {
var columns = this.context.ordinalColumnsSync(this.tableName);
columns = columns.sort(function(a, b) { return a.name - b.name; });
var fields = columns.map(function(column) {
// XXX The "name" must be the field name given by the user,
// not normalized. Because there is no such information in the
// context and currently the column name is luckily equals to the
// given field name, we can use the column name.
var name = column.name;
var name = IndexField.toFieldName(column.name);
return this.getIndexField(name);
}, this);
return fields;
Expand Down

0 comments on commit 61fedc0

Please sign in to comment.