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

Invalid relationship is shown when selecting "relationship type"

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6.4
    • Fix Version/s: 4.7
    • Component/s: Core CiviCRM
    • Labels:
      None
    • Documentation Required?:
      None
    • Funding Source:
      Core Team Funds

      Description

      Although a relationship is set limited to particular contact type, A & B both contact can select either of the relationship type.
      Example:
      A-coach
      B- Player
      Now A & B both can select both coach & player relationship type when creating a relationship.

      I was able to produce this on civicrm demo site too.

      NOTE: The form rule validation prevents the relationship from actually being saved and an error status is shown to the user. However, it makes more sense to actually filter the relationship type list in the form and not show relationship types 'directions' that are not valid for the current contact.

      ./Contact/Form/Relationship.php:569: CRM_Core_Session::setStatus(ts('%count relationship record was not created due to an invalid contact type.', array(

        Attachments

        1. Untitled.png
          29 kB
          Tapash Datta
        2. Untitled1.png
          114 kB
          Tapash Datta

          Issue Links

            Activity

              People

              • Assignee:
                jitendra.purohit Jitendra Purohit
                Reporter:
                tapash Tapash Datta
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: