I currently have a Drupal View Displaying the current user and his/her spouse (AKA Drupal User and CiviCRM Contact B) For some reason it will only Display the Drupal User and spouse if the spousal relationship was created from the Drupal User's CiviCRM contact profile. If the spousal relationship was created from Contact B's CiviCRM profile, then nothing is displayed. Is there a way to get this working regardless where the relationship was added?

enter image description hereenter image description here


You need to add the relationship from the contact ID B?

  • I tried that and it didn't work.
    – Yossi
    Sep 8 '16 at 9:07
  • 3
    I see this has been down voted but it does sound like you need to add a second pair of Relationships to cover the situation of your user being 'contact B'.
    – petednz - fuzion
    Sep 9 '16 at 10:16

Are the relationships permissioned? Your users probably can only see their spouses if it's a permissioned relationship, and perhaps when the relationship is bring created the second way it isn't being created in such a way that it is permissioned.

  • 1
    Views doesn't 'know' about permissioned relationships, so while this is something to consider in CiviCRM and webforms it doesn't (yet) affect Views.
    – petednz - fuzion
    Sep 9 '16 at 10:17
  • 1
    Ah, good to know :) Sorry then, that's not the answer.
    – naomisl
    Sep 9 '16 at 14:48
  • 1
    That is too bad. I have a situation where it would be VERY helpful. Mar 22 '17 at 3:39
  • 1
    The company I worked for has patched this now. issues.civicrm.org/jira/browse/CRM-20319 Mar 22 '17 at 16:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.