diff --git a/creator/app/objects/Contacts.coffee b/creator/app/objects/Contacts.coffee index b0ecacaf66..c587320a34 100644 --- a/creator/app/objects/Contacts.coffee +++ b/creator/app/objects/Contacts.coffee @@ -19,7 +19,7 @@ Creator.Objects.contacts = reference_to: "customers" list_views: default: - columns: ["name", "description", "modified"] + columns: ["name", "customer_id", "modified"] permissions: default: allowCreate: true diff --git a/creator/packages/steedos-creator/core.coffee b/creator/packages/steedos-creator/core.coffee index 7f36846b0a..709a864cb1 100644 --- a/creator/packages/steedos-creator/core.coffee +++ b/creator/packages/steedos-creator/core.coffee @@ -64,11 +64,10 @@ Meteor.startup -> _.each obj.fields, (field, field_name)-> if field.type == "master_detail" and field.reference_to tabular_name = field.reference_to + "_related_" + object_name - console.log tabular_name Creator.TabularTables[tabular_name] = new Tabular.Table name: tabular_name, collection: Creator.Collections[object_name], - columns: Creator.getTabularColumns(object_name, ["name"]) + columns: Creator.getTabularColumns(object_name, obj.list_views.default.columns) dom: "tp" extraFields: ["_id"] lengthChange: false