Permalink
Browse files

fix(project): do not add column id

  • Loading branch information...
jeremyvergnas committed Jul 27, 2016
1 parent cfa3d91 commit 5a29cf4e388a60a95aa6d65d41ff90624dabf869
Showing with 0 additions and 11 deletions.
  1. +0 −11 src/filter.js
@@ -212,25 +212,14 @@ export class Filter extends CriteriaBuilder {
}

generateFields(columns, entityName) {
let addColumnId = true;

for (let column in columns) {
let columnName = (entityName) ? entityName + '.' + column : column;

addColumnId = ( columnName === 'id' ? false : addColumnId );
this.columns.push({
name : columnName,
value : columnName,
type : columns[column] || 'string'
});
}

if (addColumnId) {
this.columns.push({
name : 'id',
value : 'id',
type : 'number'
});
}
}
}

0 comments on commit 5a29cf4

Please sign in to comment.