Skip to content

EspoCRM – Open Source CRM Application

fix convert lead, url

Yurii4708567bcc01
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});
}
}