Skip to content

EspoCRM – Open Source CRM Application

fix select record tree item

Yuri Kuznetsov3a295bcbad37
diff --git a/client/src/views/modals/select-category-tree-records.js b/client/src/views/modals/select-category-tree-records.js
index 609a3e37d7..d4c773d20b 100644
--- a/client/src/views/modals/select-category-tree-records.js
+++ b/client/src/views/modals/select-category-tree-records.js
@@ -145,11 +145,11 @@ class SelectCategoryTreeRecordsModalView extends SelectRecordsModalView {
checkAllResultDisabled: true,
buttonsDisabled: true,
}, listView => {
- listView.once('select', model => {
- this.trigger('select', model);
+ listView.once('select', models => {
+ this.trigger('select', models);
if (this.options.onSelect) {
- this.options.onSelect([model]);
+ this.options.onSelect(models);
}
this.close();