CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Billing is set as a primary When participant is registered for a event
Pages: [1]

Author Topic: Billing is set as a primary When participant is registered for a event  (Read 1050 times)

altaf

  • Guest
Billing is set as a primary When participant is registered for a event
May 31, 2009, 10:30:04 pm
In civicrm version 2.2.2 Profile, i have added a field for contact--> street address-->primary , now when participant fills up the form and street address it is stored as a home address(because it is set as a primary so ), and it makes a billing as a primary for that contact so when i try to export contacts for those events the addresses don't come in the resulted file as they are set for home and here billing is primary .  is it bug of civicrm ?
 
Ex.
   1) Profile---->Field(Contact->Street Address->Primary)
       
   2) Participant Registers for Event fills up this street field which is primary (home)
      so address is stored in home address

   3) New contact as a created with billing as a primary , Check in contact Summary

   4) Now export contacts.  As it exports only primary address which are billing and no address is stored for billing so it wont come.     

  Any help would be appreciated thanx in advance

-- Regards
    Altaf
« Last Edit: June 01, 2009, 01:46:35 am by altaf »

Kiran Jagtap

  • Ask me questions
  • ****
  • Posts: 533
  • Karma: 51
Re: Billing is set as a primary When participant is registered for a event
June 01, 2009, 07:45:14 am
hi altaf,

IMO civirm storing billing address as primary though you are passing one primary field in param.  I guess this behavior is only for anonymous user.
IMO we first check is there any primary field value present in param, if yes store as primary location else make billing as primary location.

IMO its a bug,  would be great if you come up with patch  :)
pointer : CRM/Contact/BAO/Contact.php do check/debug  createProfileContact( );

thanks
kiran



You Are Designed To Choose... Defined By Choice.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Billing is set as a primary When participant is registered for a event

This forum was archived on 2017-11-26.