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 Profiles (Moderator: Dave Greenberg) »
  • Profile update overwrites existing addressee and greeting content
Pages: [1]

Author Topic: Profile update overwrites existing addressee and greeting content  (Read 1104 times)

Eliet Henderson

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 4
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7
  • MySQL version: 5.0
  • PHP version: 5.2
Profile update overwrites existing addressee and greeting content
September 22, 2011, 11:20:28 am

Hi, I have a situation in which contacts who have existing addressee and greeting data have these fields overwritten when the contact completes a profile, as on a contribution page or event registration page. I thought a profile submission was supposed to fill addressee and greeting *only* if addressee and greeting are currently null -- but that if data already existed there, it would *not* be overwritten. Is this correct? Or will the information submitted in a profile always override what's already stored in addressee and greeting?

In this case, Joe Smith's record has an addressee of "Joe and Sally Smith" because we know that Joe and Sally make donations as a couple, and their mailings should be addressed to them together. But when Joe goes online to make a donation, the contribution page includes a Name and Address profile that displays and records his first and last name as Joe Smith. Then his addressee gets overridden to become simply "Joe Smith".

I couldn't find much documentation of the expected behavior, except in this bug description: http://issues.civicrm.org/jira/browse/CRM-5922

Thanks.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Profile update overwrites existing addressee and greeting content
September 23, 2011, 10:48:04 am
Hi Eliet - This sounds like a bug. If the "Custom" Postal Greeting, Email Greeting or Postal Addressee fields are set for a contact, then they should NOT be over-written / replaced by a profile submission.

However, I just ran some tests on my local site (which is 3.4.6 pre-release) and I was not able to replicate the bug. I tried the following after setting custom values for both greetings and the postal addressee:

* Logged in as that contact's user - and updated values via My Account -> Name and Address profile edit
* Logged out and submitted an event registration which had Name and Address profile in it (so match was on email address). My contact record billing address was added as expected to the contact but the greetings where not modified (they still have custom values).

So ... possible things were fixed in 3.4.6 cycle. OR you are using a combination of steps that's different. Would be great if you could replicate the "bad behavior" on the public demo. If so, definitely file a bug report with steps to replicate.
Protect your investment in CiviCRM by  becoming a Member!

Eliet Henderson

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 4
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 7
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Profile update overwrites existing addressee and greeting content
September 23, 2011, 05:31:59 pm

Thanks Dave. I did some testing and was able to replicate the error in only one situation: when I'm not logged in, and only through a contribution page. If I'm logged in and perform a live or test contribution, it doesn't delete the customized addressee and greeting. If I submit the profile through an event registration, whether logged in or not, it doesn't deleted the customized data. This is true whether the event is paid or free (so with a financial transaction and without).

But I'm not not logged in, and submit the profile through a contribution page, it deletes the customized addressee and greeting data.

I can't test this on the demo site because I can't make a live contribution as logged out user .... can I?

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Profile update overwrites existing addressee and greeting content
September 27, 2011, 11:16:10 am
Hi there.

Eliet asked me to reproduce this bug so I did so on the demo site.  It's curious to note the bug only occurs when the donor uses the contribution page while NOT logged in.  But the data is erased, which is sorta a big deal.

http://issues.civicrm.org/jira/browse/CRM-8940

UPDATE thanks for the prompt fix.
« Last Edit: September 28, 2011, 11:49:21 am by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Profile update overwrites existing addressee and greeting content

This forum was archived on 2017-11-26.