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 (Moderator: Dave Greenberg) »
  • Website (Home) field duplicates on profile edit
Pages: [1]

Author Topic: Website (Home) field duplicates on profile edit  (Read 730 times)

Chasen

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.70
  • PHP version: 5.3.9
Website (Home) field duplicates on profile edit
January 01, 2014, 06:31:28 pm
Hey guys,

Whenever a user edits their CiviCRM profile (via the /user/[uid]/edit/[CiviCRM profile name] link exposed normally to the user) and they click save, the data in the website field gets added to their CiviCRM profile as Website (Home) which is expected, however, each time you click save on this particular edit page, it keeps adding the website as a duplicated entry on the user's civicrm profile page - even if the website is already listed on their profile.

So if I open the edit page on a completely fresh user and I type in www.example.com and click save, that URL gets added to the Website (Home) field on their civicrm profile. All good. If I click edit again on their profile, the fields load, and I see that www.example.com is listed in the website field, but when I click save (even if nothing's changed) their profile now shows two Website (Home) entries (both, in this example, showing www.example.com) - this happens over and over to the point where some users have upwards of 20 websites listed - all the same.

This is causing an issue because I'm using views to display a full list of website users (pulling both drupal profile fields and civicrm profile fields) and because there's multiple values for the website field it's displaying these as individual (duplicated) records in the table that's generated by views.

I had a similar issue with the contact numbers as well (when they had a primary and secondary contact number) but the Contact Location Display settings in Views allows me to bypass that - but this isn't available for the website field - plus, these aren't different sub-catagory values, this looks more like a bug where the Website (Home) field is being added over and over each time the edit page is 'saved'.

I checked through the CiviCRM profile settings but couldn't see a setting letting me just allow one website value and each update overwrites the previous value. I also checked in Views but couldn't see any "multiple value" style options so I could show just one record per user (even if multiple websites are listed - obviously I'd rather solve the website entry bug but will settle for being able to truncate the table results to one record per user)

Any suggestions would be great.
Thanks

joanne

  • Administrator
  • Ask me questions
  • *****
  • Posts: 852
  • Karma: 83
  • CiviCRM version: 4.4.16
  • CMS version: Drupal 7
Re: Website (Home) field duplicates on profile edit
January 01, 2014, 06:47:34 pm
A similar problem was reported in http://forum.civicrm.org/index.php/topic,30588.msg131060.html#msg131060.  Have you checked if anything there is relevant?

Chasen

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.70
  • PHP version: 5.3.9
Re: Website (Home) field duplicates on profile edit
January 01, 2014, 07:04:45 pm
Hi Joanne,

Thanks for the prompt reply. Definitely looks like the user is having the same issue but the thread looks to have gone cold. I'll try a CiviCRM update and see if that fixes the problem and report back.

Thanks,
Chris

Chasen

  • I’m new here
  • *
  • Posts: 22
  • Karma: 0
  • CiviCRM version: 4.4.x
  • CMS version: Drupal 7.x
  • MySQL version: 5.1.70
  • PHP version: 5.3.9
Re: Website (Home) field duplicates on profile edit
January 01, 2014, 08:57:52 pm
Updated to 4.4.3 and still having the same issue.
Have installed a completely FRESH and DEFAULT install of Drupal and CiviCRM and still having the issue.
I'll post in the other thread from now on so we don't run two.

richard

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.5
  • CMS version: Drupal 7.x
  • MySQL version: 5.5.40
  • PHP version: 5.3.29
Re: Website (Home) field duplicates on profile edit
January 27, 2014, 05:59:38 am
I am have come across the same problem.

I have a Profile containing the Website field as well as other fields.
When saving the Profile from a Drupal user view/edit, a new instance of the Website field is added to the contact (regardless if the Profile was edited).

The problem did not occur when the Website field was used in a Webform.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Website (Home) field duplicates on profile edit

This forum was archived on 2017-11-26.