CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Reciprocal relation blank - is this a bug?
Pages: [1]

Author Topic: Reciprocal relation blank - is this a bug?  (Read 742 times)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Reciprocal relation blank - is this a bug?
December 08, 2011, 10:09:46 am
So when you go to edit a relationship type -- let's use Spouse as an example:
The help text for the B-A label says:
Quote
You may leave this blank for relationships where the name is the same in both directions (e.g. Spouse).

But if you actually follow this advice, the blank label will appear as a new option when adding a relationship to a contact, and the relationship label will then appear blank for existing relationships.

In other words, leaving the b label blank will trigger CiviCRM to treat the relationship as non-reciprocal, which is the opposite of what should be happening according to the help text.
Try asking your question on the new CiviCRM help site.

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Reciprocal relation blank - is this a bug?
December 08, 2011, 11:00:28 am
Coleman - thx for the catch. Actually the code has been in place forever to do what the help says, but it broke when we added the 'label' columns to that table (it was just copying name_a_b to name_b_a,  but not copying label_a_b when b_a was blank.

Filed and fixed for 4.1:
http://issues.civicrm.org/jira/browse/CRM-9314
Protect your investment in CiviCRM by  becoming a Member!

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Reciprocal relation blank - is this a bug?
December 09, 2011, 01:26:43 pm
Cool. So on form reload, the field will no longer be blank, but will be populated with the A label, correct?
If we wanted to get even fancier, a tiny bit of JS could copy your keystrokes from a to b on the condition that the 2 strings already match. Just a thought.
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Reciprocal relation blank - is this a bug?

This forum was archived on 2017-11-26.