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
-
Mike Dvorkin August 14th, 2009 @ 08:45 PM
- State changed from new to open
Thanks for pointing it out! Your fix should do it as well as :lead_id => model.id
-
Mike Dvorkin August 15th, 2009 @ 10:17 PM
- State changed from open to resolved
(from [3fa5d868ea6fe4a74788ea1b0215edfa275d3d33]) Pass on [lead.id] when converting it into a contact [#86 state:resolved] http://github.com/michaeldv/fat_free_crm/commit/3fa5d868ea6fe4a7478...
-
Mike Dvorkin January 12th, 2010 @ 08:47 PM
- Milestone changed from 0.9.7 "Steinitz" to 0.9.8 "Lasker"
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.
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
- 86 The lead_id field in Contacts table not updated when converting Leads to Contacts (from [3fa5d868ea6fe4a74788ea1b0215edfa275d3d33]) Pass on...