Hello Everyone,
I made some modifications to the code and toggled the “Required” field for Contact Conversion/Selection. However, when I convert a Lead and only select “Create Account” (without selecting “Create Contact”), SuiteCRM still creates an empty Contact.
Since I also modified the system to ensure emails from Leads are passed to both Contacts and Accounts, this unintended Contact is created with all fields set to null except for the Email field.
This was tested on Version 8.5.1 Bitnami Aws hosted VM
If someone want to test it you just need to make this change in /bitnami/suitecrm/public/legacy/modules/Leads/metadata/convertdefs.php
And toggle this setting
$viewdefs['Contacts']['ConvertLead'] = array(
'copyData' => true,
'required' => false, /** Toggled from true to false*/
... /** Rest of the code below */