Open klyonrad opened 8 years ago
Digging deeper I found out that the accont is not saved due to validation errors - that is an effect of custom fields that we have.
and the method
def self.create_or_select_for(model, params)
if params[:id].present?
account = Account.find(params[:id])
else
account = Account.new(params)
if account.access != "Lead" || model.nil?
account.save
else
account.save_with_model_permissions(model)
end
end
account
end
does not handle errors that could happen on .save
Same issue as: https://github.com/fatfreecrm/fat_free_crm/issues/253 - Can't convert a lead to a contact with a new Account which has mandatory custom fields
/contacts
new_company
in Account fieldconsequences: