I've setup a contribution page and made a link to it. I include a profile that includes things like address. The matching is set to update. If someone who already in civi goes to the donate page and only fills in the name and email address, leaving the street address blank, it will match and then null out the address that was there.

I'd like it to only update the fields if the user enters something in the field.

I don't really want to give everyone a drupal login and make them login first. We want to make donating as easy as possible.

We're using paypal so a lazy person who knows that and that they'll login to their paypal account and that it will pull up their address info, won't bother to enter it on the donate page. Interesting, if they do that either paypal doesn't send back the address info or civi doesn't do anything with it.

civicrm 4.5.8 (testing 4.6.11)

3 Answers 3


Created jira CRM-20731.

This problem also sort of exists with creating a new contact without an address. The contact will get an address record with only the country and state province. I included this in the jira as well since it's likely the same core code.

  • You says 'also exists' but jira is marked as Completed. Can you update your ticket to confirm if this is Fixed or not. thx
    – petednz - fuzion
    Jun 14, 2017 at 5:33
  • 1
    In haste I grabbed the wrong number. I've edited it.
    – Paul-Tahoe
    Jun 15, 2017 at 2:31
  • thanks very much he says typing more words to get paste the minimum allowed ;-)
    – petednz - fuzion
    Jun 15, 2017 at 4:55

I'm working on WordPress 4.9.1 and CiviCRM 4.7.27. I'm seeing the same behaviour which can be replicated on the demo WordPress site. It's not only the address fields that are affected, it's also other fields as well, specifically custom fields.

If those fields are on the profile and you don't populate them, then they will all be blanked on a save. This is not good as we'd like to use volunteers to change select information but don't want to create a whole bunch of profiles for different scenarios. We'd like to present all info that they can change and then have them change only things that need changing.

It doesn't matter whether the state/province default is set or not. So our only recourse rights now to make things easier for volunteers is to create a duplicate record and then have an administrator go in and merge those records on a periodic basis.

I see that this bug has supposedly been solved, but it sure doesn't seem so.


this doesn't sound right. and i just checked on demo. gave user 'demo' a first and last name, added a address profile, filled it in incognito such that the match would pick it up, which it did, and I can confirm that demo did not have his (?) address overwritten as a result of leaving the profile address fields blank.

You can give it a go here to confirm (or point out i missed something)

check his address first (or give him one if system gets wiped before you get there) at


( also if system has been reset add Name and Address field at http://dmaster.demo.civicrm.org/civicrm/admin/contribute/custom?reset=1&action=update&id=1)

then go to this incognito to


and use first = demo, last = demo, email = [email protected] to ensure match. then see outcome.

oh also if reset, make the contribution page have Pay Later so you can skip cc.


  • 1
    I found the problem. If you have both a default country and state/province set in localization => Languages, Currency, Locations, it will do as I described. If you only have a country set it works correctly (demo only has country set). Now that I think about it I've noticed we have a number of people with only a country and state for address, which seems kind of wrong, e.g. don't set an address if only country and state is provided.
    – Paul-Tahoe
    Feb 17, 2016 at 16:34
  • maybe worth reporting in jira if you are sure of that as it sounds like unexpected and unwanted outcome
    – petednz - fuzion
    Feb 18, 2016 at 5:21
  • and worth adding as your own answer and accepting so SE is happier about having Questions that have accepted or upvoted answers
    – petednz - fuzion
    Jun 11, 2017 at 22:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.