From 4708567bcc019ad84baffe8bc382e02a3cf3332f Mon Sep 17 00:00:00 2001 From: Yurii Date: Thu, 8 Jan 2026 17:29:35 +0200 Subject: [PATCH] fix convert lead, url --- client/modules/crm/src/controllers/lead.js | 4 ++-- client/modules/crm/src/views/lead/detail.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/modules/crm/src/controllers/lead.js b/client/modules/crm/src/controllers/lead.js index 41b6bfd2f7..b5d58c36a4 100644 --- a/client/modules/crm/src/controllers/lead.js +++ b/client/modules/crm/src/controllers/lead.js @@ -31,8 +31,8 @@ import RecordController from 'controllers/record'; class LeadController extends RecordController { // noinspection JSUnusedGlobalSymbols - actionConvert(id) { - this.main('crm:views/lead/convert', {id: id}); + actionConvert(options) { + this.main('crm:views/lead/convert', {id: options.id}); } } diff --git a/client/modules/crm/src/views/lead/detail.js b/client/modules/crm/src/views/lead/detail.js index aec6e58315..00f7154dfa 100644 --- a/client/modules/crm/src/views/lead/detail.js +++ b/client/modules/crm/src/views/lead/detail.js @@ -60,7 +60,7 @@ class LeadDetailView extends DetailView { } actionConvert() { - this.getRouter().navigate(`${this.model.entityType}/convert/${this.model.id}` , {trigger: true}); + this.getRouter().navigate(`${this.model.entityType}/convert/id=${this.model.id}`, {trigger: true}); } }