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

Pre-fill in autocomplete contact reference fields includes deleted contacts

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.0, 4.1.1, 4.1.2
    • Fix Version/s: 4.2.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      We are using an autocomplete contact reference field to assign some access to views for our group leaders. When I start to write a surname in the box it pulls up both current and deleted names making it very difficult to know who to choose if we have a current/deleted record for the same person.

      I have tested this on the demo and the same thing happens - it pulls up deleted people as well as current ones as pre-fill suggestions. Dave Greenberg and Eileen agreed this should not be the case and Eileen suggested the following:

      The contact_get api should default to only getting is_deleted = 0.

      I think it's likely this is fixed in the api (& might need backporting)

      Code: [Select]
      /*

      • Adjust Metadata for Get action
        *
      • @param array $params array or parameters determined by getfields
        */
        function _civicrm_api3_contact_get_spec(&$params) { $params['contact_is_deleted']['api.default'] = 0; }

        Attachments

          Activity

            People

            • Assignee:
              dgg David Greenberg
              Reporter:
              lindseym Lindsey Mansfield
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: