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 Drupal Modules (Moderator: Donald Lobo) »
  • Drupal edit profile dialog - address data fields empty
Pages: [1]

Author Topic: Drupal edit profile dialog - address data fields empty  (Read 1595 times)

lucido

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.4
  • MySQL version: 5.1
  • PHP version: 5.3
Drupal edit profile dialog - address data fields empty
October 14, 2011, 06:44:40 am
Hi there

When signing up for membership a user has to provide his address data. A drupal account will also be created during signup. After successful singup, when logging in with the new username and pw the user gets redirected to the user profile view in drupal. There you can see first and last name, as well as the address data. If you then go to edit user profile the address fields are empty. In CiviCRM contact administration as well as in the database the address data exists.

What I noticed:
When changing the location_type_id within the civicrm database table "civicrm_address" from 1 (Home -> default) to 5 (Billing) the address fields within drupal edit profile view are populated with the correct values.

Does the drupal "edit profile view" query for the wrong location_type_id? Am I missing a setting within CiviCRM? Or what can be wrong here?

Many Thanks and cheers
Lucido

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal edit profile dialog - address data fields empty
October 14, 2011, 09:39:49 am

the profile address fields have a location type which need to match with the DB. Typically primary would match any location type

however there is a bug where if your have the primary address / email / phone on different location types, civi does not retrieve the right values. this is a legacy of the older data model.

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lucido

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7.4
  • MySQL version: 5.1
  • PHP version: 5.3
Re: Drupal edit profile dialog - address data fields empty
October 20, 2011, 06:34:44 am
Hi lobo

Thank you for your explanations!
I now noticed, that when a user signs up for a membership, the email address will be stored with the location type "billing". When I set the email to "home", the address data fields within the drupal user profile will be filled correctly.
Is there a way to store the location type of the email address as "home" by default on membership signup? This would solve the problem.

Thank you und cheers
lucido

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal edit profile dialog - address data fields empty
October 20, 2011, 09:27:02 am

Currently no :( One of the long standing projects has been to remove the email address restriction from those pages, so folks can add whatever location they want (i..e get rid of the billing type)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

jtbayly

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 0
Re: Drupal edit profile dialog - address data fields empty
December 13, 2011, 09:05:24 am
Has this been fixed in 4.1?

Thanks,
-Joseph

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal edit profile dialog - address data fields empty
December 13, 2011, 11:47:36 am

no. unforunately while long-standing no one has stepped in to write the code and/or sponsor the patch

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Drupal Modules (Moderator: Donald Lobo) »
  • Drupal edit profile dialog - address data fields empty

This forum was archived on 2017-11-26.