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;