Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
fix(project): do not add column id
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyvergnas committed Jul 27, 2016
1 parent cfa3d91 commit 5a29cf4
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/filter.js
Expand Up @@ -212,25 +212,14 @@ export class Filter extends CriteriaBuilder {
} }


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

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


addColumnId = ( columnName === 'id' ? false : addColumnId );
this.columns.push({ this.columns.push({
name : columnName, name : columnName,
value : columnName, value : columnName,
type : columns[column] || 'string' 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.