Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

civicrm/admin/reltype - Fix warning #8299

Merged
merged 1 commit into from
May 17, 2016

Conversation

totten
Copy link
Member

@totten totten commented May 4, 2016

Scenario:

  1. Create a new relationship-type. It should target "All Contacts" (not "Individual" or "Organization"). (Note: In the schema, "All Contacts" translates to contact_type_a=NULL.)
  2. Reload the list of relationship-types
  3. Observe: Warnings

Notes:

  1. The relationship type appears to work correctly if you try to create
    relationship-instances, so this feels like a cosmetic issue on the listing
    screen.
  2. What a silly place for that code live. Keep calm and carry on.

Scenario:
 1. Create a new relationship-type. It should target "All Contacts" (not "Individual" or "Organization"). (Note: In the schema, "All Contacts" translates to `contact_type_a=NULL`.)
 2. Reload the list of relationship-types
 3. Observe: Warnings

Notes:
 1. The relationship type appears to work correctly if you try to create
    relationship-instances, so this feels like a cosmetic issue on the listing
    screen.
 2. What a silly place for that code live. Keep calm and carry on.
@seamuslee001
Copy link
Contributor

Jenkins re test this please

@seamuslee001
Copy link
Contributor

Opened up list of relationships in test box that already had some relationships for all contacts.
Verified display of notices
Applied patch, notices disappear.
Also verified that relationships can still be saved correctly

@eileenmcnaughton
Copy link
Contributor

Based on Seamus's QA & the code being simply the addition of a check for the variable I'm merging this

@eileenmcnaughton eileenmcnaughton merged commit 5ef8e06 into civicrm:master May 17, 2016
@totten totten deleted the master-reltype branch May 17, 2016 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants