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

can't create relationship if current contact is part of search results

    Details

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

      Description

      To reproduce:

      • enter a contact record, select the relationship tab, and click to add a new relationship
      • select a relationship type and in the search field, enter a partial name that would return the contact you are in; click search. for example, if you are in John Doe's record, type "do" > search
      • the result set will not include the contact you are in – which makes sense, as you would not create a contact record with yourself.

      however –
      note the count beneath the search result does include the current contact (e.g. 1 of 2, where only 1 record is displayed)
      if you select contacts and click save, the relationships are not saved.

      so it looks like our method for removing the current contact from the result set is compromising the save function.

      reproducible on demo.

        Attachments

          Activity

            People

            • Assignee:
              kurund Kurund Jalmi
              Reporter:
              lcdweb Brian Shaughnessy
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 2 hours
                2h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h