From 86a87be017d3a21eb1eaa62b54e8043d4fe6f928 Mon Sep 17 00:00:00 2001 From: Jack Zhuang Date: Thu, 14 Dec 2017 14:44:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=98=BE=E7=A4=BA=E5=A4=96?= =?UTF-8?q?=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- creator/app/objects/Contacts.coffee | 2 +- creator/packages/steedos-creator/core.coffee | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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