From 2156094407bff2e21ef3ff354d60cdd86daf296f Mon Sep 17 00:00:00 2001 From: yuri Date: Wed, 7 Oct 2015 12:21:59 +0300 Subject: [PATCH] cleanup --- frontend/client/src/views/record/list-tree.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/client/src/views/record/list-tree.js b/frontend/client/src/views/record/list-tree.js index 6cc793e700..1ac1eed356 100644 --- a/frontend/client/src/views/record/list-tree.js +++ b/frontend/client/src/views/record/list-tree.js @@ -188,18 +188,16 @@ Espo.define('views/record/list-tree', 'views/record/list', function (Dep) { return this.options.el + ' li[data-id="' + model.id + '"] span.cell-' + item.name; }, - getCreateAttributes: function (model) { + getCreateAttributes: function () { return {}; }, actionCreate: function (data, e) { e.stopPropagation(); - var attributes = this.getCreateAttributes(this.model); + var attributes = this.getCreateAttributes(); attributes.order = this.collection.length + 1; - - attributes.parentId = null; attributes.parentName = null;