#86 ✓resolved
Terryvo

The lead_id field in Contacts table not updated when converting Leads to Contacts

Reported by Terryvo | August 14th, 2009 @ 09:44 AM | in 0.9.8 "Lasker"

The lead_id field in the Contacts table isn't populated with the related Lead Id when converting leads to contacts. Should you ever wish to report on any Contacts and link them to the related originating Lead, this is needed, correct?

I believe the solution is to edit the section in contact.rb to:

# Class methods. #---------------------------------------------------------------------------- def self.create_for(model, account, opportunity, params)

# added ":lead_id     => params[:id],"
attributes = {
  :lead_id     => params[:id],  <<<<NEW
  :user_id     => params[:account][:user_id],
  :assigned_to => params[:account][:assigned_to],
  :access      => params[:access]
}

Let me know if this is correct.

thanks,
Terry

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby on Rails CRM platform for Web 2.0 and beyond

People watching this ticket

Referenced by

Pages