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

CiviEvents: when using existing location on a new event, only the first phone number is loaded causing data loss on save

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.3, 4.4.4, 4.4.5
    • Fix Version/s: 4.5
    • Component/s: CiviEvent
    • Labels:

      Description

      The problem: when you choose to use an existing location it is only grabbing the first phone number associated with that location. If you then save your new event (with only the one phone number), any additional phone numbers are deleted from that location, which means any events that were using that location will now display only one.

      To replicate:

      1. create an event (Events > New Event) when you get to the second page, location information, enter a new location and include 2 or more phone numbers, save and exit your event (if you view or edit this event you will see that all phone numbers are displayed)

      2. create a second event, this time, when you get to the location information screen, select 'Use existing location' and choose the location you had added to the first event. You will see that only the first phone number was loaded, save and exit this event

      3. now view the first event (/civicrm/event/info?reset=1&id=[event id]), you will see that it now has only 1 phone number

      This issue has been replicated on http://drupal.demo.civicrm.org/ and currently exists in the most recent version of CiviCRM.

      It appears to be an issue with new events only, editing an existing record will show multiple phone numbers (if you haven't wiped them out yet by saving a new event.) This would suggest that the solution would be to ensure that phone numbers are loaded on new event creation in the same way that they are loaded for existing records.

      For those who have run into this issue - editing an event and adding additional phone numbers will add them to all the events using that location so you will only need to edit one event to get the number(s) back everywhere - which is why I only marked this as minor.

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              freeform.steph Stephanie Gray
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: