Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21427

Websites are removed from the contact if their type is empty

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No
    • Overview:
      When editing the websites in a contact's Summary, using "- none -" as the website type will delete it on the second save.
    • How it works currently:
      Websites with empty types get removed from the contact.
    • How it should work:
      Websites should persist regardless of their type or lack thereof, OR website type should be mandatory.

      Description

      When editing the websites, using "- none -" as the website type will delete it on the second save. In the Summary tab, this seems consistent. The behavior is slightly different in the Edit form, adding a second website without a type will delete the first one (but still add the new one without a type).

      Reproduced on latest CiviCRM:

      1. Create a contact
      2. In the Summary tab, click Add or edit websites
      3. Enter http://example.com and set the Website Type to none
      4. Click Add or edit websites again
      5. Enter http://example2.com and set the Website Type to none

      Result: Both websites have been removed from the contact.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gboudrias Guillaume Boudrias
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: