civicrm/admin/reltype - Fix warning
authorTim Otten <totten@civicrm.org>
Wed, 4 May 2016 22:44:18 +0000 (15:44 -0700)
committerTim Otten <totten@civicrm.org>
Wed, 4 May 2016 22:44:18 +0000 (15:44 -0700)
commitdeeaad59d340b4d2ac108a9f4c0bf613b1eed213
tree243726b40f258b97cd9b97654e6d2b7f9dcbd38b
parentbad203e107f7eb0349c9c53996dbc1a4d79e4314
civicrm/admin/reltype - Fix warning

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.
CRM/Core/Page/Basic.php