From 4ea1d50caf24e0e8190e143b25c8d2eec4cecb50 Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 18 Mar 2016 11:19:14 +0200 Subject: [PATCH] fix detail getFieldViews --- client/src/views/record/detail.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/client/src/views/record/detail.js b/client/src/views/record/detail.js index de014d0c18..d898612b63 100644 --- a/client/src/views/record/detail.js +++ b/client/src/views/record/detail.js @@ -416,13 +416,19 @@ Espo.define('views/record/detail', ['views/record/base', 'view-record-helper'], var fields = {}; if (this.hasView('middle')) { - _.extend(fields, Espo.Utils.clone(this.getView('middle').getFieldViews(withHidden))); + if ('getFieldViews' in this.getView('middle')) { + _.extend(fields, Espo.Utils.clone(this.getView('middle').getFieldViews(withHidden))); + } } if (this.hasView('side')) { - _.extend(fields, this.getView('side').getFieldViews(withHidden)); + if ('getFieldViews' in this.getView('side')) { + _.extend(fields, this.getView('side').getFieldViews(withHidden)); + } } if (this.hasView('bottom')) { - _.extend(fields, this.getView('bottom').getFieldViews(withHidden)); + if ('getFieldViews' in this.getView('bottom')) { + _.extend(fields, this.getView('bottom').getFieldViews(withHidden)); + } } return fields; },