commit | 189751469245fe7b5d142e6ba034ac27d0d4e25c | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue Aug 01 14:48:04 2017 -0700 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue Aug 01 14:48:04 2017 -0700 |
tree | f5ea6de0dc2d5194c62dd036b0a2b00a0301704f | |
parent | cc800a7bd5684ff52b68f4c7c49928f424337ee7 [diff] |
Displaying relations in tables Change-Id: I1680f6d40407849f196c7f8d0b7798fd39cf8629
diff --git a/src/app/core/services/helpers/config.helpers.ts b/src/app/core/services/helpers/config.helpers.ts index 88b4c06..32e0b16 100644 --- a/src/app/core/services/helpers/config.helpers.ts +++ b/src/app/core/services/helpers/config.helpers.ts
@@ -154,7 +154,7 @@ } // if the field identify a relation, create a link - if (f.relation && f.relation.type === 'many_to_one') { + if (f.relation && f.relation.type === 'manytoone') { col.type = 'custom'; col.formatter = item => { this.populateRelated(item, item[f.name], f);